News for hackers. Stuff that matters.
Re:Nimrod Programming Language by ulf on Wednesday May 13, 2009 @10:18AM (#606915)
In that code sample the variable "matches" seems to be magically set by the =~ assignment. That would not be very clean. Or am I missing something?
Re:Nimrod Programming Language by pshc on Wednesday May 13, 2009 @10:39AM (#606948)
http://force7.de/nimrod/regexprs.html

You're correct. It seems to work using a template, which is a simple macro. I wonder if those are hygienic... In any case, it seems you could use the macro facility to instead have explicit bindings for match groups.