[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Macro pre-processing?
From: |
Han-Wen Nienhuys |
Subject: |
Re: Macro pre-processing? |
Date: |
Tue, 02 May 2006 10:44:08 +0200 |
User-agent: |
Thunderbird 1.5 (X11/20060313) |
Graham Percival schreef:
In all honesty, I'm with Geoff on this one. All the #() stuff looks
scary, and having the "parser location" "non-arguments" (I mean, they're
never referenced in the actual code) was the straw that broke my
They are if you do real-world stuff. In particular, the location
argument is there so you give a warning message with the correct line
numbers, using
(ly:input-message location "this is an error")
the "parser" argument is there so you can access parser state (eg. for
defining new variables).
This discussion about having macros and whatnot (which inevitably comes
with supposedly easier to understand fragments pseudo-code) is the
umpteenth one.
Be warned that I won't accept patches that attempt to add any ad-hoc
programming/macro language features. This has been my position for the
last 10 years, and I don't see any reason to change it.
I recommend that people read the GUILE rationale [1] before they attempt
to do any cute "easy" syntax design first.
[1] http://www.gnu.org/software/guile/guile.html#whatisit
"The true cost of doing it yourself"
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
LilyPond Software Design
-- Code for Music Notation
http://www.lilypond-design.com
- Re: Macro pre-processing?, Erik Sandberg, 2006/05/01
- Re: Macro pre-processing?, Nicolas Sceaux, 2006/05/01
- Re: Macro pre-processing?, Mats Bengtsson, 2006/05/01
- Re: Macro pre-processing?, Geoff Horton, 2006/05/01
- Re: Macro pre-processing?, Nicolas Sceaux, 2006/05/01
- Re: Macro pre-processing?, Graham Percival, 2006/05/02
- Re: Macro pre-processing?,
Han-Wen Nienhuys <=
- Re: Macro pre-processing?, Mats Bengtsson, 2006/05/02
- Re: Macro pre-processing?, Mats Bengtsson, 2006/05/02
- Re: Macro pre-processing?, Aaron VonderHaar, 2006/05/03
- Re: Macro pre-processing?, Graham Percival, 2006/05/03
- Re: Macro pre-processing?, Rick Hansen (aka RickH), 2006/05/02
- Re: Macro pre-processing?, Erik Sandberg, 2006/05/02
- Re: Macro pre-processing?, Rick Hansen (aka RickH), 2006/05/02
- Re: Macro pre-processing?, David Feuer, 2006/05/02
- Re: Macro pre-processing?, Werner LEMBERG, 2006/05/02
- Re: Macro pre-processing?, Rick Hansen (aka RickH), 2006/05/02