[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Template pattern grammar seems broken

On Mon, 25 Apr 2011 01:52:15 -0400, Alex Shinn <alexshinn@x> wrote:

> On Mon, Apr 25, 2011 at 3:17 AM, Andre van Tonder <andre@x>  
> 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