What are "quotations" in F#, and what are they used for?
Asked
Active
Viewed 487 times
6
-
2They are used to make the novice F# programmer brain explode – yanta Nov 18 '10 at 14:17
3 Answers
7
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
4
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.

Marcelo Cantos
- 181,030
- 38
- 327
- 365
-
Do `Expression<>` objects actually quote code or are they just values representing code? – J D Aug 31 '10 at 09:47
3
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

Matt Ball
- 354,903
- 100
- 647
- 710

AHungerArtist
- 9,332
- 17
- 73
- 109