lilypond-user
[Top][All Lists]
Advanced

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

Re: optional Dynamics with tag#?


From: David Kastrup
Subject: Re: optional Dynamics with tag#?
Date: Sun, 14 Jan 2018 23:35:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Vaughan McAlley <address@hidden> writes:

> On 11 Jan 2018 3:00 a.m., "David Kastrup" <address@hidden> wrote:
>
>  omit { } which can only be used around sequential music, not post events.
>
>
> So the “If in doubt, put curly brackets around it” rule doesn't always
> work

I wasn't aware of any such rule in LilyPond.  Even in C, macros tend to
prefer putting

   do { ... } while (0)

around stuff so that

#define BLA(x) do { ++x; ++x; } while (0)

if (1)
  BLA (x);
else
  BLA (y);

works without "unexpected else" errors.

-- 
David Kastrup



reply via email to

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