You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In l3prg <boolean> stands for "boolean variable" contrary to l3keys where <boolean> stands for "boolean value" (see .set_bool:N documentation)
Suggestion
Replace <boolean> with <boolean value> in l3keys (conforming to the error message below).
Moreover, in .set_bool:N, true and false really mean the strings "true" and "false" and not the booleans.
Adding quotes would help a lot.
I'm starting to make in an upcoming pull request most of the changes you suggested in various issues. I've added \bool_to_str:N and c and n analogues.
In l3prg <boolean> stands for "boolean variable" contrary to l3keys where <boolean> stands for "boolean value" (see .set_bool:N documentation)
No, in both cases <boolean> is a boolean variable like \l_foobar_bool. I've changed five occurrences to boolean value in l3keys to insist on that (and for consistency with other variable types in this file). I've added quotes as suggested around true and false.
bug in an error message
Thanks, it seems more general so I've logged it at #1013.
In l3prg
<boolean>
stands for "boolean variable" contrary to l3keys where<boolean>
stands for "boolean value" (see.set_bool:N
documentation)Suggestion
Replace
<boolean>
with<boolean value>
in l3keys (conforming to the error message below).Moreover, in
.set_bool:N
, true and false really mean the strings "true" and "false" and not the booleans.Adding quotes would help a lot.
A bug in an error message
MWE:
The error message reads
The 'key' is missed. For
.default:n
instead of.initial:n
, the 'key' is properly catched.Suggestion:
\bool_to_str:N
and\bool_to_str:n
would be welcomeIt would simplify the use of
<booleans>
as<boolean values>
.would be replaced with
The text was updated successfully, but these errors were encountered: