I think the list of languages that *don't* have integer overflow might be shorter actually. From quick research:

* Python 3 and Ruby's integer types are big integers (they get as big as can fit in memory)
* JS numbers are floating point, which causes different problems (but not integer overflow). JS has big integers too though.
* large PHP integers convert to floating point (similarly, can cause problems but not integer overflow)

Follow

@b0rk I am not sure anymore because I haven't used haskell in a long time, but if i remember correctly their Integer type is arbitrary precision as well.

@serra looks like they have both (Int is 32/64-bit, Integer is arbitrary precision)

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.