lilypond-devel
[Top][All Lists]
Advanced

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

Re: shall we rename X-offset (and similar) to lowercase?


From: David Kastrup
Subject: Re: shall we rename X-offset (and similar) to lowercase?
Date: Sun, 24 Mar 2013 19:13:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Werner LEMBERG <address@hidden> writes:

>>> Maybe we can add some code to prevent the redefinition of `Scheme
>>> constants' (in the broadest sense) like x, y, left, right, #t, #f?
>> 
>> I don't think we can really do this for Scheme, so we'd lose the
>> Scheme/LilyPond equivalence of variables.
>
> Hmm, so what about a warning:
>
>   The variable `foo' is hiding a Scheme symbol with the same name.
>
> This could be even hard-coded into the parser since the number of such
> symbols is rather small.

Does not seem to change the Scheme/LilyPond difference.  The problem is
not really as much the "hide a Scheme symbol with the same name" case
inside of LilyPond (unless you load other people's Scheme code
afterwards) but rather Scheme's "replaces a Scheme symbol's value with
something else" behavior.

I really don't think we are doing people favors with trying to be as
tricky as possible about the situation.  The current situation is less
that pretty, but at least it is not a trap.

-- 
David Kastrup



reply via email to

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