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
Am working with etoolbox v2.5k. In documentation for \providebool , suggest adding description of how the flag value is set or preserved. Have included existing text and suggested possible improved text below. Unsure if this is the correct forum for this, please advise if better location to submit.
\providebool current description:
"Defines a new boolean flag called unless it has already been defined. This
command is robust."
suggested improved description (or however the commend is expected to behave):
"Defines a new boolean flag called unless it has already been defined. This
command is robust. If already defined, the state of the flag is unchanged. If newly defined, the initial state of the flag is false."
The text was updated successfully, but these errors were encountered:
The \provide... model comes from \providecommand, where the idea that things are unchanged if they already exist is implicit. etoolbox makes the same assumption for e.g. \providerobustcmd - I'm not sure that picking out \providebool is necessary. Can you explain why you feel this one needs to be handled specially?
Sir, \providebool just happened to the be command I was working with for my document, which is why I suggested it receive expanded description above. The same rational and statement would also apply to \providetoggle. The rational for inclusion is to make explicit to the user in what state the \providebool and \providetoggle commands set their flags when created, and that they do not change the state of the flags if they already exist. I think with the description right now, technically the behavior in either case is undefined, and could change in future revisions of etoolbox.
Understood if my suggestion is overly pedantic. The current behavior is as expected, and it may be overkill to document and maintain documentation on every little thing. Also, I may be unintentionally trying to set software interface requirements through documentation. I am unsure if you maintain a interface requirements specification or similar for etoolbox. If such a thing exists, that might be a better place to document specific expected behaviors such as the above.
Am working with etoolbox v2.5k. In documentation for \providebool , suggest adding description of how the flag value is set or preserved. Have included existing text and suggested possible improved text below. Unsure if this is the correct forum for this, please advise if better location to submit.
\providebool current description:
"Defines a new boolean flag called unless it has already been defined. This
command is robust."
suggested improved description (or however the commend is expected to behave):
"Defines a new boolean flag called unless it has already been defined. This
command is robust. If already defined, the state of the flag is unchanged. If newly defined, the initial state of the flag is false."
The text was updated successfully, but these errors were encountered: