开发者

What are F# quotations?

开发者 https://www.devze.com 2023-01-12 22:30 出处:网络
What are \"quotations\" in F#, and what are they used 开发者_运维问答for?See http://msdn.microsoft.com/en-us/library/dd233212.aspx

What are "quotations" in F#, and what are they used 开发者_运维问答for?


See

http://msdn.microsoft.com/en-us/library/dd233212.aspx

and possibly

http://en.wikipedia.org/wiki/Homoiconicity

If you want scenarios, I bet you can find some by looking at

https://stackoverflow.com/questions/tagged/F%23+quotations


They are equivalent to Expression<> objects in C#. They represent the expression tree of the code therein in a way that can be accessed by other code at runtime.


In short, a quotation is metadata that represents the code of a particular function or code snippet.

http://fortysix-and-two.blogspot.com/2009/06/traversing-and-transforming-f.html

0

精彩评论

暂无评论...
验证码 换一张
取 消