|
|
|
|
|
by mehrdadn
2232 days ago
|
|
> the example which benefits from the way that Rust chooses to define it I'm actually struggling to see what the practical benefit is in having it wrap around. The program is still producing garbage at that point, which you're not handling, so why not let the compiler just forget about that case just like you already did? |
|
You aren't supposed to rely on this semantic, as it's an error. If the checks get cheap enough, rustc will also check in release.