News for hackers. Stuff that matters.
Re:Java is not a safe language by kaba0 on Monday June 13, 2022 @05:19PM (#31731898)
Haskell has it as well, in a very clever way in my opinion. Number literals don’t have a type themselves, they are inferred to be the correct type based on context/available type notations, etc.

There is both a 64bit integer type and an “infinite” one, and you can change the implementation by a single type notation, in a completely safe way.

There are no comments on this comment yet.