On 11/02/2012 10:30 PM, Jacob Carlborg wrote:
On 2012-11-02 21:03, Manu wrote:
I bumped into this today actually. It's certainly a nice idea.
I see a lot of noise about said AST macros...
I understand the idea, but I have no idea how it might look in practice.
Are there any working proposals?
No, not for D. But there are several other languages that have AST macros:
Scala: http://scalamacros.org/
Nimrod: (templates and macros) http://nimrod-code.org/tut2.html#templates
Nemerle: http://nemerle.org/wiki/index.php?title=Macros
Nemerle also supports creating new syntax for the language.
- http://www.haskell.org/haskellwiki/Template_Haskell
- http://opendylan.org/books/dpg/db_329.html
- http://en.wikipedia.org/wiki/Common_Lisp#Macros
(not a complete list at all.)