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?
[ Parent
| on HN ]
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.