You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
JavaScript allows so much meta-programming, such as being able to define toString(), or valueOf or Symbol.toPrimitive to define how custom objects interact with primitives, but it becomes extremely limited when it comes to user objects interacting with other user objects in a developer-friendly way.
I would love proper operator overloading.
That said... I don't see the need for with operators. Like Symbol.toPrimitive, it seems like objects should be able to define how they interact with other objects / primitives, with fallbacks to native behavior for a behavior that is not specifically defined.
nikeee and ljharbchriscalo, FrameMuse, pennane, wwahammy, fixiabis and 11 more