Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TwoBit
· 6y ago · 0 comments
All well-known programming languages will do the shift first.
Comments
[–]
thehobgoblin
6y ago
I looked at about 20 different "popular" languages and I believe that only 2 (Go and Swift) of them have shifts at a higher precedence than addition.
I think I'm missing a reference/joke =/
[–]
hemdawgz
6y ago
Or this might just be another confident but baseless HN commenter assertion.
[–]
copascetic
6y ago
C, C++, Java, and Rust all have shift as lower precedence than addition/subtraction. Edit: and Javascript, Python.
[–]
recursive
6y ago
You can add C# as well.