Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mikeash
on July 8, 2015
|
parent
|
context
|
favorite
| on:
When ‘int’ is the new ‘short’
Signed types have a worse problem. They
typically
wrap around, but the behavior is undefined. That means the compiler can assume it never happens and optimize your code accordingly, which can lead to all sorts of entertaining misbehavior.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: