Re:Spry: a programming language inspired by Smalltalk/Rebol ...
by junke on Monday June 27, 2016 @09:46AM
(#11986115)
I tried to find an example of the macro-like approach of Spry and couldn't. How is it expressed?
[ Parent
| on HN ]
Re:Spry: a programming language inspired by Smalltalk/Rebol ...
by gokr on Monday June 27, 2016 @11:20AM
(#11986723)
It's not as evolved yet - but funcs pull in arguments via :x and can instead use :$x (I used ^ earlier, but switched to $) which will pull in that AST node (argument) without evaluating it first at the call site.
So it's a kind of quoting. I haven't pushed these things further yet, and frankly I am not that heavily into macros unless they are really needed. But obviously AST manipulation is easy in Spry.