3 ms·
I tend to think it's fine for the very most common and obvious operators (MDAS, etc), but as soon as you get outside of those I agree. In particular I've been b
by brundolf 6y ago
I tend to think it's fine for the very most common and obvious operators (MDAS, etc), but as soon as you get outside of those I agree. In particular I've been bitten by the precedence of JavaScript's ?? operator:
function foo(a) {
return a ?? 10 + " is the num"; // a ?? (10 + " is the num")
}
foo(12) // 12
- deleted 6y ago[deleted]