[Top][All Lists]

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

Re: New assoc-let package

From: Christopher Schmidt
Subject: Re: New assoc-let package
Date: Sat, 6 Dec 2014 14:58:36 -0500 (EST)

Artur Malabarba <address@hidden> writes:
> On 6 Dec 2014 11:36, "Christopher Schmidt" <address@hidden> wrote:
>> The inability to meaningfully nest different assoc-let forms makes
>> the macro inflexible.
> What would you consider meaningful nesting? Being able to access the
> variables of the outer macro inside the inner macro?

Yeah, that is what I meant.  Maybe the macro can support optional args
that specify the keys to be used.

    (assoc-let .foo .bar alist1
      (assoc-let .rms .gpl alist2 ; foo and bar bound to alist1
        ...                       ; rms and gpl bound to alist2

Maybe the name alist-let is more appropriate than assoc-let or assq-let
as this facility is of the same kind as alist-get.

reply via email to

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