Hi all,<br><br>I've a quick question about macros. I'm doing my own Scheme implementation and trying to figure out macros from R5RS and PLT docs. My question is: is the following a valid macro, assuming you provide equal numbers of symbols and values?<br>
<br>(define-syntax parallel-set!<br> (syntax-rules ()<br> [(parallel-set! (symbol ...) (value ...))<br> (set! symbol value) ...]))<br><br>(parallel-set! (a b c) (1 2 3))<br>; a = 1, b = 2, c = 3<br><br>I've implemented ellipses and subpatterns but am not sure on some of the details when using both together. Any information gratefully received.<br clear="all">
<br>-- <br>James Coglan<br><a href="http://github.com/jcoglan">http://github.com/jcoglan</a><br>