Thomas Chust scripsit:

> > The alist approach I chose can feel unwieldy at times for sure if
> > written manually, but nice when the alist is already formulated
> > elsewhere (which occurs quite a bit in web code) to be passed in.
> 
> That's a good point to keep in mind.

An advantage of the alist approach is that you can use quasiquote to
create it:

(foo `((bar . ,bar-value) (baz . ,baz-value) (quux . ,quux-value)))

This deals nicely with situations where some key values are fixed
at the point of call and others are variable.

-- 
Not to perambulate                 John Cowan <co...@ccil.org>
    the corridors                  http://www.ccil.org/~cowan
during the hours of repose
    in the boots of ascension.       --Sign in Austrian ski-resort hotel

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to