<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
And in fact it already works in PLT Scheme:<br>
<br>
#lang scheme<br>
<br>
(define-syntax foo<br>
(syntax-rules ()<br>
[(foo a b ... c)<br>
'(a b ... c)]))</blockquote></div></div></blockquote><div><br><br>Also, I just noticed this does not work:<br><br>(define-syntax infix-ellip<br> (syntax-rules ()<br> [(_ (name value) ... fn ignore ...)<br> (let ([name value] ...)<br>
(fn name ...))])) <br></div></div><br>mzscheme complains of more than one ellipsis in the pattern (which I gather is what R6RS mandates), but there's no reason I can see that this should not be allowed to match, say, the following:<br>
<br>(infix-ellip (a 1) (b 2) * 5 'ignore)<br><br>Can macros be used to support this or is it impossible? Examples would be great as I'm kinda new to all this.<br>