3 ms·
> the author is very vague about why exactly numbers don't fit in the type system No, he’s quite specific: “hardware details such as the number of bits support
by dragonwriter 7y ago
> the author is very vague about why exactly numbers don't fit in the type system
No, he’s quite specific: “hardware details such as the number of bits supported by an integer add instruction show through in the language semantics.”
Now, it's also true that there are quite a lot of languages where this is not true, e.g., Scheme, Haskell (IIRC with the default numeric settings), Ruby, Python, for instance, and many more have numeric types in core language or stdlib that don't face this problem but don't make them the default for simple numeric literals.