This is the mail archive of the
mailing list for the Guile project.
Re: Syntatic sugar and identifier permissivity
At 22:44 05/04/2000 +0200, Klaus Schilling wrote:
>Thierry Bezecourt writes:
> > I really think that
> > obj->x++
> > is more readable than
> > (set! (x obj) (1+ (x obj)))
>But nothing prevents you from writing a macro for that.
You're right, and I do write macros (or syntaxes, because R4RS was my first
Guile documentation) sometimes for this kind of task, but the problem will
remain when reading code written by other people. I will have to learn
their macros before reading their code.
What you say makes me think that a kind of "standard syntax library" would
be useful in Guile. It would offer to the developer standard and
easy-to-use syntaxes without polluting the language itself and without
forcing them to write these macros in every program. What I'm thinking
about is something in the spirit of the C++ STL for Guile and syntaxes.