3 ms·
Honestly, most of the time I think we would be better off without operator precedence. It just adds another thing you need to keep in your head when reading cod
by wtetzner 12y ago
Honestly, most of the time I think we would be better off without operator precedence. It just adds another thing you need to keep in your head when reading code.
Unfortunately, nearly everyone -- even non-programmers -- learned the operator precedence for arithmetic operators, which means they might be confused if those operators in a language didn't use it.
- vorg 12y agoA limited hierarchy like Go's could be OK: parens (...) paths . [] and args (x,y) unary ! - binary * / & binary + - | binary == != <= >= < > binary && binary || comma , assign = += -= *= /= &= |= :=