[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: procedures with setters: patches
From: |
Han-Wen Nienhuys |
Subject: |
Re: procedures with setters: patches |
Date: |
Sat, 28 Feb 2004 11:53:15 +0100 |
address@hidden writes:
>
> When a pattern is encountered a few times, it is common pratice to
> write a macro that will expand to that pattern. For instance:
>
> and there are several other occurences of that pattern. There could be
> something that will allow to write, for instance:
>
>
> which imho improves readability.
> Although that's not purely stylistic, are you interested in such
> changes?
I'm ambivalent. The danger is that the number of functions to create
and manipulate data structures explodes, and becomes harder to
learn. We have to find a balance between having a small "interface"
and an interface that is ultra-ergonomic to use. For the above case, I
think make-music-by-name-and-props and is useful, althouh I oppose of
the name. Why not have
make-music-by-name
take an optional alist or list of init values?
--
Han-Wen Nienhuys | address@hidden | http://www.xs4all.nl/~hanwen