[Top][All Lists]

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

Re: [Chicken-users] Expanding ellipsis on lists of different length

From: felix winkelmann
Subject: Re: [Chicken-users] Expanding ellipsis on lists of different length
Date: Thu, 28 Aug 2008 11:59:15 +0200

On Wed, Aug 27, 2008 at 9:02 PM, Elf <address@hidden> wrote:
> i believe that this is an error in chicken.  there are two ellipses in the
> pattern and only one in the output spec, so in both cases it should error
> with
> an invalid transformer spec notice.  additionally, the 'a' isnt followed by
> an ellipsis, nor is the 'b' followed by an ellipsis, which is specifically
> the error referred to here: 'pattern variables that occur in subpatterns
> followed by one or more instances of the identifier ... are allowed only in
> subtemplates that are followed by as many instances of ... .
> they are replaced in the output by all of the subforms they match in the
> input,
> distributed as indicated.  it is an error if the output cannot be built as
> specified.'

BTW, alexpander accepts this form, but gives an error if the lists
are of unequal length.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]