Some APIs define the true/false state based on existence of the node.
So for example:
would evaluate option to be true
while:
would evaluate option to be false (or nil, in any case falsy).
This can't be done with the current Boolean type, and implementing it on top would break the compatibility, so it would need to be a new type.
Some APIs define the true/false state based on existence of the node.
So for example:
would evaluate
optionto betruewhile:
would evaluate
optionto befalse(or nil, in any case falsy).This can't be done with the current Boolean type, and implementing it on top would break the compatibility, so it would need to be a new type.