New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public no value bool for l3keys #988
base: main
Are you sure you want to change the base?
Conversation
Just a thought without thinking it through, but shouldn't we first take a look at the broader picture and perhaps marry that with the xparse mechanism to be uniform (and allowing people to query using |
On the specifics of the |
But isn't the level of |
yes it is, as you say "at the moment". All I was saying that I expect that to change because we will need to identify on the xparse level that an argument is a key/val argument and deal with it without forcing the user to do expl3 programming (or not in common cases). Just like xparse took away the need to do low-level 2e programming to get optional arguments or starred forms. I'm not saying that right now it is clear what that would mean and how one would best interface with it but I would think a 2e like interface to some aspects of l3keys that is integrated with ltcmd is needed. This remark was not about the pull specifically only that when starting to augment it is something to keep in mind or consider broadly. |
Also, what's the problem with using an interface now that already is there, and later add another interface that is possibly accessible from 2e? No matter what the future of |
I strongly suspect that it is uncommon for the state of being “unassigned” (i.e. with no value set) to be described as (or to be equivalent to the state of) being “empty” (for either a key-value key (as here) or for a more general property). @josephwright wrote: Also, in this context, “having the value ‘empty’” can mean many things. I quote: But what do we mean here by the phrase ‘having the value
Or maybe something else is meant by this value called “empty”? Or do we mean that the key itself “is empty” (has the property of “being empty”) in some other sense, rather than that the term “empty” refers to the value of the key? |
This PR will make the
\l__keys_no_value_bool
public to allow users to directly test for no value without relying on some.default:n
trickery (see, e.g., https://tex.stackexchange.com/questions/614690/how-to-distinguish-no-value-from-empty-value-when-setting-l3keys/614719?noredirect=1#comment1535606_614719 for a possible use case).