Hi all,<br><br>I&#39;ve a quick question about macros. I&#39;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>&nbsp; (syntax-rules ()<br>&nbsp;&nbsp;&nbsp; [(parallel-set! (symbol ...) (value ...))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (set! symbol value) ...]))<br><br>(parallel-set! (a b c) (1 2 3))<br>; a = 1, b = 2, c = 3<br><br>I&#39;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>