Operator Overloads #5407
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Duplicate
An existing issue was already created
Out of Scope
This idea sits outside of the TypeScript language design constraints
It would simplify a lot of use cases if we could override relational, equality, additive, and Multiplicative operators.
My initial thoughts on how this would work is that functions would replace the operators with functions when compiling to JavaScript.
Becomes:
The text was updated successfully, but these errors were encountered: