News for hackers. Stuff that matters.
Re:Using const/let instead of var can make JavaScript code r... by niq999 on Wednesday October 21, 2020 @01:17AM (#24844945)
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.
Re:Using const/let instead of var can make JavaScript code r... by ficklepickle on Wednesday October 21, 2020 @04:45AM (#24845941)
We'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.

Re:Using const/let instead of var can make JavaScript code r... by spleen on Wednesday October 21, 2020 @01:38AM (#24845052)
They are actually 64-bit floats (doubles) and unlimited integers in Ruby.
Re:Using const/let instead of var can make JavaScript code r... by mmis1000 on Wednesday October 21, 2020 @01:58AM (#24845134)
And now JS also have unlimited integers