2 ms·
Oh yes! Besides pattern matching, this is the biggest improvement to Javascript control flow I've been waiting for. It's a shame it can't be expression oriented
by acjohnson55 11y ago
Oh yes! Besides pattern matching, this is the biggest improvement to Javascript control flow I've been waiting for. It's a shame it can't be expression oriented by default, but I suppose that in the handful of cases expression-orientedness really shines, typing "do" is a small price to pay.
I have been wondering, it's there any downside to expression-orientedness? Time and again, it seems to pay its weight. JS, for example, has arguably been saved by function expressions.
Random niche question, would "do...while" now be an expression?