Is there a reason the Boolean functions whenA and unlessA are not by-name (lazy) functions like option, xor, fold etc?
Now when using false.whenA(f) function f is evaluated even when the boolean is false. Similar for unlessA.
Is this a bug or a feature?
Functions like Option.when and Option.unless are also by-name, so I would have expected these Boolean function to also be by-name.
Is there a reason the Boolean functions
whenAandunlessAare not by-name (lazy) functions likeoption,xor,foldetc?Now when using
false.whenA(f)functionfis evaluated even when the boolean is false. Similar forunlessA.Is this a bug or a feature?
Functions like
Option.whenandOption.unlessare also by-name, so I would have expected these Boolean function to also be by-name.