top | item 43710215

(no title)

wruza | 10 months ago

Then it's of little use imo. Library decimals already exist in multiple optimized forms.

discuss

order

hajile|10 months ago

It would still use faster JIT mechanisms internally and make strong guarantees, but the interface would suck.

JS really needs to add a "use type" or typed module feature with strong Hindley-Milner types. This would allow them to cut the rest of the really bad parts like the bad type coercion, but definite types would also mean that adding these new features to typed modules only would get rid of the performance issues for stuff like operator overloading because the types would be known in advance.