Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wongarsu
on Oct 4, 2021
|
parent
|
context
|
favorite
| on:
Implicit Overflow Considered Harmful, and how to f...
Ada has integer types that are basically defined by just their range, and if they are wrapping. So for example you might define
type My_Tiny_Int is range 1 .. 20; type Unsigned_Wrapping_int is mod 2 ** 5;
I don't think it does any fancy inference based on that, just overflow checks.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: