Is there any built-in function for human-readable F# quotations?

后端 未结 3 986
闹比i
闹比i 2021-01-13 10:47

When quoting

<@ 1 + 1 @>

I want \"1 + 1\"

instead of

\"Call (None, Int32 op_Addition[Int32,Int32,Int32](Int32

3条回答
  •  旧时难觅i
    2021-01-13 11:21

    You'll have to write it yourself. See the F# quotations visualizer code as a guide for transforming the quotations abstract syntax tree.

提交回复
热议问题