News for hackers. Stuff that matters.
Re:Nimrod: The Return of Pascal by nnq on Tuesday September 03, 2013 @01:58AM (#6319257)
How come nobody comments about this feature of Nimrod:

> 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.

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.

Re:Nimrod: The Return of Pascal by kibwen on Tuesday September 03, 2013 @08:36AM (#6320516)
Hygienic AST-based macros are starting to surface in quite a few non-sexpr languages. Rust has them, and IIRC Elixir does too. It's an exciting trend.