Werner LEMBERG <w...@gnu.org> 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

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to