Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
andrewla
on Dec 7, 2022
|
parent
|
context
|
favorite
| on:
Fast midpoint between two integers without overflo...
> Since the width of the operands are known ahead of time
Not so for loops and accumulator constructs.
jcparkyn
on Dec 7, 2022
[–]
I think it would be reasonable to also have overflowing and checked versions of the operators, for cases where the compiler can't guarantee the size (e.g. mutable variables in loops).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Not so for loops and accumulator constructs.