Wednesday, 22 November 2006

Quotations

Tomas Petricek posted an interesting blog entry on the use of quotations in F#:

http://cs.hubfs.net/blogs/tomasp/archive/2006/07/07/413.aspx

To paraphrase, you can quote some F# code:

> <@1+2*3@>


and get the abstract syntax tree representing that code:

val it : ast = Add(Int 1, Mul(Int 2, Int 3))

No comments: