Skip to content

[request] Equality operator override #22

Open
@ghost

Description

This is a great project, thank you for making this.

The only thing it's lacking is overloading of == operator. Comparing Strings can be a pain in the ass without it.

I know this might break things, as == should compare references and everyone is used to that, but maybe some workaround could be made.

We don't have to override == for every class and object. Could it be enabled only for some classes that we explicitly choose? (it would have it's limitations, but it's better than nothing)

Or maybe is there a possibility to add a new operator? Like ===, which would convert a===b into something like (a == null ? b==null : a.equals(b))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions