Re:Nimrod: The Return of Pascal
by lobster_johnson on Tuesday September 03, 2013 @07:41AM
(#6320326)
Easy enough if you go to the Nimrod site and look at the documentation:
http://nimrod-code.org/tut2.html#macros
http://nimrod-code.org/manual.html#macros
Note that Nimrod also has templates, which also uses AST-based macro expansion.
> a powerful (AST based, hygienic) macro system
...and I can't find any easy to digest example of it? I know, macros are "evil" and shouldn't be overused and this is not Lisp and all, but it actually seems like a potential killer feature for a language targeting the C/Rust/Go niche.