Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dkersten
on April 2, 2021
|
parent
|
context
|
favorite
| on:
Summary of C/C++ integer rules
So, because its not perfect, should you throw it all out?
UncleMeat
on April 2, 2021
[–]
No. Because people tend to make
more mistakes
if they try to use unsigned values in this manner in C/C++.
dkersten
on April 3, 2021
|
parent
[–]
I’ve personally never encountered a bug that turned out to be caused by an unsigned value. YMMV, I guess.
UncleMeat
on April 3, 2021
|
root
|
parent
[–]
If seen all sorts of bugs caused by surprise conversions, as well as overflows that cause bugs that would be statically detectable but can't become blocking errors because unsigned overflow is well defined.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: