[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strings as variable names
From: |
David Kastrup |
Subject: |
Re: Strings as variable names |
Date: |
Mon, 28 Dec 2015 10:17:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Johan Vromans <address@hidden> writes:
> On Mon, 28 Dec 2015 12:05:22 +1100
> Andrew Bernard <address@hidden> wrote:
>
>> The name of a variable must have alphabetic characters only, no numbers,
>> underscores, or dashes.
>>
>> Most lilypond users would write bellaMelodia, conventionally. In terms of
>> readability, it’s clearer to read than the string with quotes, I reckon.
>
> They would write bellaMelodia since there is (was) no alternative to
> separate "words" in a variable name. 2.19.33 seems to accept dashes and
> underscores as well. Maybe the NR needs updating?
The quote character syntax was issue 2931. The change was for 2.18 but
not mentioned in the Changes file. Single, in-word occurences of - and
_ were allowed for 2.16 already, issue 2702. It was mentioned in
Changes at that time. I think that some other documentation was changed
as well but am not sure how completely.
The quote syntax is a bit of an ugliness which was added for sort-of
consistency reasons.
--
David Kastrup
- Strings as variable names, Menu Jacques, 2015/12/27
- Re: Strings as variable names, Andrew Bernard, 2015/12/27
- Re: Strings as variable names, Johan Vromans, 2015/12/28
- Re: Strings as variable names,
David Kastrup <=
- Re: Strings as variable names, Andrew Bernard, 2015/12/28
- Re: Strings as variable names, David Kastrup, 2015/12/28
- Re: Strings as variable names, Johan Vromans, 2015/12/28
- Re: Strings as variable names, Urs Liska, 2015/12/28
- Re: Strings as variable names, Johan Vromans, 2015/12/28
- Re: Strings as variable names, David Kastrup, 2015/12/28
- Re: Strings as variable names, Johan Vromans, 2015/12/28
- Re: Strings as variable names, David Kastrup, 2015/12/28
- Re: Strings as variable names, Johan Vromans, 2015/12/29
- Re: Strings as variable names, David Kastrup, 2015/12/29