logoalt Hacker News

deathanatos • today at 5:35 PM • 2 replies • view on HN

Rust has a compile time option, though to my immense disappointment, it defaults to on only in debug mode. (You can opt into it for release, if desired.)

Python simply can't overflow, since its integral type is not a fixed width.

But it is the sort of correctness thing that I do wish languages would pay more attention to.


Replies

insanitybit • today at 6:24 PM

In Rust's case it just matters a lot less since bounds checks are still present. But I do think int under/overflows are probably one of the scarier issues in the language.

TZubiri • today at 6:32 PM

>Python simply can't overflow, since its integral type is not a fixed width.

Python master race