Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
trealira
6 months ago
|
parent
|
context
|
favorite
| on:
To be a better programmer, write little proofs in ...
Yeah, it would have to be something like this if you wanted to avoid the signed integer overflow at the end of the loop:
assert(i <= j); for (;;) { do_something_with(i); if (i == j) break; i++; }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: