lilypond-devel
[Top][All Lists]
Advanced

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

Re: Syntax: numbers prefixed with # or not


From: Trevor Bača
Subject: Re: Syntax: numbers prefixed with # or not
Date: Thu, 28 Feb 2019 14:20:12 -0600

On Thu, Feb 21, 2019 at 7:44 AM Kieren MacMillan <
address@hidden> wrote:

> Hi Valentin,
>
> > Or, we just don’t bother and keep using (and recommending) # everywhere.
> > Thoughts?
>
> I use # everywhere I can, even where it’s not strictly necessary, in part
> because it visibly sets arguments apart for easy parsing [by me].
>
> Not sure if that’s useful input for you?
>

Hi Kieren, Valentin,

I've shifted my practice the opposite direction of Kieren's, I suppose: I
omit # before numbers everywhere that it's possible to do so.

No real Lily rationale here, other than a personal coding practice to
employ the (lexically) shortest version of equivalent statements. I think
the original impulse came years ago when I was trying to rid myself of
redundant precedence indicators, eg, to use "a + b * c" everywhere in place
of "a + (b * c)"; because the two forms are equivalent (in most languages),
I wanted a canonical version for myself that I could spot at a glance. That
practice leaked into my Lily code, with the slight preference now for "99"
to "#99" where the forms are equivalent.

Trevor.

-- 
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca


reply via email to

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