-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bitwise operators #1191
Bitwise operators #1191
Conversation
`a | b` in a table cell splits the cell in two. `a \| b` in a table cell renders as `a | b`. (`a \| b` anywhere else would render as `a \| b`.)
Co-authored-by: Chandler Carruth <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggesting some added detail in the alternatives considered to more fully cover concerns raised on the decision here.
Co-authored-by: Chandler Carruth <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woot! Confirmed on Discord that the outstanding comment threads were addressed, and this looks good to land, merging!
Add bitwise and bit-shift operators `&`, `|`, `^`, `<<`, `>>`. Replace C++ `~` with unary prefix `^`. Co-authored-by: Chandler Carruth <[email protected]>
Following carbon-language#1191, add initial support for bitwise operators. Support for both integer operations and for operator overloading via the interfaces specified in carbon-language#1191 is provided.
Following #1191, add initial support for bitwise operators. Support for both integer operations and for operator overloading via the interfaces specified in #1191 is provided. Co-authored-by: Jon Ross-Perkins <[email protected]>
Following carbon-language#1191, add initial support for bitwise operators. Support for both integer operations and for operator overloading via the interfaces specified in carbon-language#1191 is provided. Co-authored-by: Jon Ross-Perkins <[email protected]>
Add bitwise and bit-shift operators
&
,|
,^
,<<
,>>
. Replace C++~
with unary prefix^
.