proposal-decimal icon indicating copy to clipboard operation
proposal-decimal copied to clipboard

how about proposal-operator-overloading was withdrawn?

Open softboy99 opened this issue 1 year ago • 3 comments

https://github.com/tc39/proposal-operator-overloading was withdrawn, is there any influence with this proposal ?

softboy99 avatar Jan 19 '24 03:01 softboy99

Yes, the same reason means that Decimal won't be able to be a primitive and thus have overloaded operators.

ljharb avatar Jan 19 '24 04:01 ljharb

Nice, after that polyfill will be easy to implement.

munrocket avatar Mar 13 '24 16:03 munrocket

It certainly makes it polyfillable (without that, it's not polyfillable at all) - but it unfortunately also makes for a much less compelling utility argument for advancing the proposal at all.

ljharb avatar Mar 13 '24 17:03 ljharb

Originally, the earlier iterations of this proposal did indeed aim to add decimals as a new primitive type, with overloading. But in the face of implementor response, we've scaled back the proposal to offer the functionality of decimal numbers. In our view, the need and demand for decimals among developers is great enough to overcome the bulkiness of a version of decimals without overloading.

jessealama avatar Jul 22 '24 12:07 jessealama

In other words, the withdrawal of the operator overloading proposal doesn't automatically kill the decimal proposal. They're related, but decimal has evolved to the point where it is no longer paired with operator overloading.

jessealama avatar Jul 22 '24 12:07 jessealama