Re: [Scheme-reports] Template pattern grammar seems broken
Aaron W. Hsu 05 May 2011 18:42 UTC
On Mon, 25 Apr 2011 01:52:15 -0400, Alex Shinn <alexshinn@gmail.com> wrote:
> On Mon, Apr 25, 2011 at 3:17 AM, Andre van Tonder <andre@het.brown.edu>
> wrote:
>> The template pattern language on page 16 seems broken.
>>
>> It would allow the following template:
>>
>> (... a ...)
>
> Thanks, in some implementations this expands to (a ...),
> but I think we should restrict the escape to the one
> argument version. I'll update it to say the <pattern>s
> and <template>s which are identifiers may not be the
> <ellipsis>.
Since <template> is already everything that <element> is except without
the ellipsis, wouldn't it be easier to just change (<ellipsis> <element>)
to (<ellipsis> <template>)? I can make this change if someone can confirm
that this will fix the problem.
Aaron W. Hsu
--
Programming is just another word for the lost art of thinking.
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports