News for hackers. Stuff that matters.
Re:Java is not a safe language by est31 on Monday June 13, 2022 @10:57AM (#31726499)
> 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.

Re:Java is not a safe language by lumost on Monday June 13, 2022 @01:22PM (#31728564)
true, however python doesn't have static typing. It would be interesting to see more static languages adopt a "Number" primitive.