4 ms·
> overflow should be an error in most languages > Chasing safety features which result in difficult to reason about semantics will inevitably lead to low lang
by est31 4y ago
> overflow should be an error in most languages
> Chasing safety features which result in difficult to reason about semantics will inevitably lead to low language adoption.
Python solves this problem by not having overflow for integers at all, instead all integers are unlimited. It's still one of the most widely used languages in the world.
- lumost 4y agotrue, however python doesn't have static typing. It would be interesting to see more static languages adopt a "Number" primitive.