operator-overloading icon indicating copy to clipboard operation
operator-overloading copied to clipboard

Why Function.defineOperator?

Open trusktr opened this issue 6 years ago • 1 comments

I like the idea of operator overloads, but what does it have to do with Function? Why is it a static method on Function? Why not global.defineOperator(), or a new Meta object with the method, or something?

trusktr avatar Dec 22 '19 02:12 trusktr

I was modelling it after Object.defineProperty(). I really could've been anything.

k4b7 avatar Dec 22 '19 22:12 k4b7