Tagged Questions
31
votes
2answers
1k views
Why do bitwise operators have lower priority than comparisons?
Could someone explain the rationale, why in a bunch of most popular languages (see note below) comparison operators (==, !=, <, >, <=, >=) have higher priority than bitwise operators (&, |, ...
22
votes
10answers
2k views
Is there any reason why most programming languages don't have '!>' (not greater than) and '!<' (not less than) operators?
I wonder if there is any reason - or if it is just an accident of history - that there are no !> and !< operators in most programming languages?
a >= b (a greater OR equals b) could be ...
3
votes
2answers
654 views
Why do more languages not support ===
I mean it as it is used in JavaScript. Just curious why this is not supported in more languages? Like Java for example does not have it? Seems to be a very useful operator to have.
6
votes
3answers
489 views
How useful are infix operators in a programming language?
How useful are infix operators in a programming language? Are they worth the extra complexity they provide? Can you provide any examples where infix operators are better suited to the problem that ...