Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Thaxll
on March 25, 2022
|
parent
|
context
|
favorite
| on:
An Introduction to Generics
If you ask most programmer, ~ is definitely not a bitwise-NOT operation.
assbuttbuttass
on March 26, 2022
[–]
It's the bitwise-NOT operator in C, java, and python just off the top of my head, I think most people are familiar with it
37ef_ced3
on March 26, 2022
|
parent
[–]
In Go we use ^ for bitwise-NOT.
IshKebab
on March 27, 2022
|
root
|
parent
[–]
Surely that is xor? Ah I looked it up and it
is
xor, but
unary
^ is NOT. Interesting overloading.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: