lilypond-user
[Top][All Lists]
Advanced

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

Re: Dot-separated list as music function argument


From: David Kastrup
Subject: Re: Dot-separated list as music function argument
Date: Tue, 08 Jul 2014 16:15:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> 2014-07-08 13:39 GMT+02:00 Simon Albrecht <address@hidden>:
>> The 2.18 changes document says that #'(Staff Accidental) and
>> Staff.Accidental were now interchangeable, however if I replace it in the
>> second function call, I get errors (unexpected "." etc.). Is there a way to
>> avoid this in the coding of the function or should it be considered a bug?
>
>
> I think that symbol-list-or-symbol? is what you need:

I'd probably use symbol-list? here.  symbol-list-or-symbol? is a bit of
a compatibility crutch for functions that previously accepted #'xxx
syntax for their arguments, possibly mimicking \override syntax.

For newly introduced functions, accepting #'xxx in addition to #'(xxx)
does not seem like a necessity.

-- 
David Kastrup



reply via email to

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