[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `ly:context-property` and empty alist
From: |
Werner LEMBERG |
Subject: |
Re: `ly:context-property` and empty alist |
Date: |
Sun, 10 Jul 2022 12:59:03 +0000 (UTC) |
>> I have a use case where I want to say
>>
>> ```
>> \set SYM = #'()
>> ```
>>
>> i.e., I explicitly want to override the default DEF with an empty
>> list. How can I do that?
>
> As a user, if the code is written that way, you have no proper
> solution. Yes, that’s a bit sad. (If the property is an alist,
> though, you can use a dummy alist with a key that is not in the set
> of keys the code looks for, e.g. a string if the alist is supposed
> to map numbers to something.)
Thanks, I came to the same conclusion.
> As a developer, you should not write the code that way.
:-)
> I suspect you
> ask this in the context of your figured bass code, right?
Yes, I will continue the discussion on lilypond-devel.
Werner