[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] Question regarding interaction between new syntax-rules extensions
On Sat, May 25, 2013 at 02:21:53PM +0200, Peter Bex wrote:
> And what happens when mixing literals with ellipsis identifiers?
>
> (define ___ 2)
> (define-syntax match-ellipsis-literals
> (syntax-rules ___ (___)
> ((_ x ___) (list x ___))))
>
> (match-ellipsis-literals 1) => (1 2), (1 underscore), or (1)?
> (match-ellipsis-literals 1 2) => (1 2), (1 underscore), or error?
> (match-ellipsis-literals 1 ___) => (1 underscore), error?
That list makes no sense. I think it should be
(match-ellipsis-literals 1) => (1 2), (1) or error?
(match-ellipsis-literals 1 3) => (1 2), (1 3), or error?
(match-ellipsis-literals 1 ___) => (1 2), or error?
Cheers,
Peter
--
http://www.more-magic.net
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports