|
|
|
|
|
by Jtsummers
256 days ago
|
|
I mean, yeah. If you do bad math you'll get bad results and potentially crashes. I was responding to someone who was nonsensically ignoring that we validate user input rather than blindly putting it into a variable. Your comment seems like a non sequitur in this discussion. It's not like the risk you describe is unique to range constrained integer types, which is what was being discussed. It can happen with i32 and i64, too, if you write bad code. |
|
Assuming you want a good faith conversation, then the idea that there's bad math involved seems a bit ludicrous