Skip to content
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
Open
@matthew-dean

Description

@matthew-dean

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions