macro support in F#

前端 未结 11 1254
遇见更好的自我
遇见更好的自我 2020-12-14 17:18

After reading Practical Common Lisp I finally understood what the big deal about macros was, and I have been looking for a language for the .NET platform that supports this.

11条回答
  •  没有蜡笔的小新
    2020-12-14 17:49

    but good horrors the syntax in those ocaml examples looks obscure

    There you're running into the same fundamental syntactic trade-off you do with Lisp. If you want the power of lisp-like macros, you tend to either end up with lisp-like syntax for the language, or else your macro syntax looks quite different from your regular syntax... nothing wrong with either approach, just different choices

提交回复
热议问题