lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add \path markup command, and use it for \eyeglasses.


From: David Kastrup
Subject: Re: [PATCH] Add \path markup command, and use it for \eyeglasses.
Date: Sun, 20 Jun 2010 09:20:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Werner LEMBERG <address@hidden> writes:

>>> Looks good to me.  It would be nice if I could say
>>>
>>>   \path #0.25 #'miter #'square ##f #samplePath
>>>
>>> instead of using numbers for the second and third parameter.  Is this
>>> possible?
>> 
>> How about defining constants path:miter and path:square instead?  Then
>> \path does not need special code, and the command would just be
>> 
>> \path #0.25 #path:miter #path:square ...
>
> Hmm.  I don't like the ugly `path:' prefix.
> Usually, we don't have this in arguments to lilypond commands, AFAIK.

Well, I wanted to avoid naming collisions.  A prefix seemed easiest for
that.

> From a syntactical point of view, I can't see an immediate benefit of
> saying
>
>   #path:miter
>
> instead of
>
>   #'miter

Hm?  Could you explain what constitutes a "syntactical point of view" in
your book?  A constant value does not need special treatment in the
code, a symbol does.

So I fail to see your point.

-- 
David Kastrup



reply via email to

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