This repository was archived by the owner on Apr 3, 2025. It is now read-only.
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
Please do this!! #63
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels