logoalt Hacker News

Scaevolus • today at 7:58 AM • 1 reply • view on HN

C/C++ obviously have far too many precedence levels, but you can easily have a more readable tower without forcing parentheses, like Go's 5 levels: https://go.dev/ref/spec#Operator_precedence


Replies

layer8 • today at 12:42 PM

`a + b | c + d` is still confusing and prone to misinterpretation in that scheme.