有人类可读的F#报价内置函数吗? [英] Is there any built-in function for human-readable F# quotations?
本文介绍了有人类可读的F#报价内置函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
引用时
<@ 1 + 1 @>
我要"1 +1"
代替
"Call (None, Int32 op_Addition[Int32,Int32,Int32](Int32, Int32),
[Value (1), Value (1)])"
解决方案
您必须自己编写它.请参阅 F#引用可视化工具代码,以作为转换引用抽象语法树的指南.>
When quoting
<@ 1 + 1 @>
I want "1 + 1"
instead of
"Call (None, Int32 op_Addition[Int32,Int32,Int32](Int32, Int32),
[Value (1), Value (1)])"
解决方案
You'll have to write it yourself. See the F# quotations visualizer code as a guide for transforming the quotations abstract syntax tree.
这篇关于有人类可读的F#报价内置函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文