Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sureglymop
1 day ago
|
parent
|
context
|
favorite
| on:
My first verified imperative program
How so? If you specify the type int how would that save you from an overflow/underflow at runtime?
alternatex
1 day ago
[–]
Not sure if types are supposed to protect against overflow/underflow, it's more in the arithmetic territory. Interesting idea though, I wonder if some programming language allows overflow/underflow checks directly in the types.
reply
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: