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 16:01:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Werner LEMBERG <address@hidden> writes:

>> We have in C++ macros X Y LEFT RIGHT etc, and making them lowercase
>> would heavily conflict with typical variable names.
>
> Yes: cpp stuff should be uppercase.
>
>> Making things different between C and Scheme here is definitely an
>> option.
>
> I think the same: we already substitute `-' in Scheme with `_' in C++,
> so I think it should be straightforward to do the same for `LEFT' and
> friends.
>
>> Still, I doubt that we would be doing programmers a net favor over
>> the current names.  I am not particularly enamored to them, but I
>> don't see an exit strategy with reasonable long-term benefits
>> either.
>
> My concern is the user side only since we don't want to make the cpp
> stuff visible.

I really would not want to see x and y predefined as Scheme identifiers.
It is far too likely that someone will write things like

x = { c' d' e' f' }

and then everything relying on #x being 0 will go southwards.

-- 
David Kastrup



reply via email to

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