lilypond-devel
[Top][All Lists]
Advanced

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

Re: another feature for #{ ... #}


From: Nicolas Sceaux
Subject: Re: another feature for #{ ... #}
Date: Sun, 26 Sep 2004 18:18:08 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Han-Wen Nienhuys  <address@hidden> writes:

> I don't see the point. Why doesn't it work when you use $name ?
> \context should also be able to take a STRING_IDENTIFIER for the id.

#{ \context Voice = $myname { ... } #}

  ==> (approximatively)

{ #(define gensymAAA myname) % actually, this happens outside
                             % the generated lily expression
  \context Voice = \gensymAAA { ... } }

which is not legal.

> I would try to excercise extreme caution in adding such
> functionality. Once you add it, you have a certain reponsibility to
> keep supporting this. If you add too much things, it easily becomes
> spaghetti.
>
> In addition, your feature (textual substitution), can easily lead to
> confusing syntactical errors, which is why I have been so strongly
> against macro languages (textual substitution) in the past.

Ok, I understand your point. I'll keep it in my user files then.

nicolas





reply via email to

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