by codr7 · 7y ago · 0 comments
Simply making the value optional and injecting it in specified conditions if present would allow using the same construct for both.
Note that this may well be possible in P6, most things are; but I have yet to come across and example of COND-behavior, they're all switching on values from what I can see.
switch (true) {
case a > b: ...
case isFullMoon(): ...
}