2 ms·
It may be a good thing, for historical/backward-compatibility reasons. But there's no reason that fixed-size ints and IEEE floats can't be intermixed with arbi
by neilv 7y ago
It may be a good thing, for historical/backward-compatibility reasons.
But there's no reason that fixed-size ints and IEEE floats can't be intermixed with arbitrary-size/precision numbers, even in a small language, such as Scheme:
https://schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_sec_6.2 https://schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-...
Racket adds a bit more:
https://docs.racket-lang.org/reference/numbers.html https://docs.racket-lang.org/reference/numbers.html
IIRC, Brendan Eich was aware of Scheme when he defined what's now known as JavaScript, but on a crazy-tight schedule, and JS wasn't intended to be an applications language.