4 ms·
I still have a silly dream that one day Javascript will split the numeric type into 32-bit floats and ints by default, like Ruby does. I wonder how much of the
by niq999 6y ago
I still have a silly dream that one day Javascript will split the numeric type into 32-bit floats and ints by default, like Ruby does. I wonder how much of the existing ecosystem that would break.
- spleen 6y agoThey are actually 64-bit floats (doubles) and unlimited integers in Ruby.
- mmis1000 6y agoAnd now JS also have unlimited integers
- ficklepickle 6y agoWe've got various number types in array form: {u}int{8,16,32}, floats too. I feel like that is about the best we can do without harming backwards compatibility. They are there when needed, but we are stuck with the ambiguous "number" type in general.