[Haskell-cafe] "quoting" in Haskell

Jeremy Shaw jeremy.shaw at linspireinc.com
Mon Aug 27 16:01:11 EDT 2007


At Mon, 27 Aug 2007 17:04:17 +0200,
Peter Verswyvelen wrote:
> 
> In Scheme, on can "quote" code, so that it becomes data. Microsoft's F# 
> and C# 3.0 also have something similar that turns code into "expression 
> trees". The latter is used extensively in LINQ which translates plain C# 
> code into SQL code or any other code at runtime (this idea came from FP 
> I heared)

Depending on what you are trying to do, you might also be able to use
some of the DSL techniques that Lennart Augustsson has been exploring
in his blog over the past couple months.

This is probably a good starting point:

http://augustss.blogspot.com/2007_06_01_archive.html

j.


More information about the Haskell-Cafe mailing list