macro support in F#

前端 未结 11 1243
遇见更好的自我
遇见更好的自我 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:51

    Well, F# is based on OCaml and OCaml has a rather extensive macro system. Given the syntactic and semantic similarities of F# and OCaml you may be able to port over the Ocaml macro system to F#.

    Other than stealing Ocaml's macro system I'm unaware of a canned macro system for F#.

提交回复
热议问题