HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by usmannk | Hacker News Reader
Parent
Full thread
usmannk
·
Interestingly enough it seems to do the shift first in Swift
View on HN
TwoBit
·
All well-known programming languages will do the shift first.
thehobgoblin
·
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
·
Or this might just be another confident but baseless HN commenter assertion.
copascetic
·
C, C++, Java, and Rust all have shift as lower precedence than addition/subtraction. Edit: and Javascript, Python.
recursive
·
You can add C# as well.
Reply on news.ycombinator.com