Vaughan McAlley <[email protected]> writes:
> On 11 Jan 2018 3:00 a.m., "David Kastrup" <[email protected]> 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
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user