Skip to content

equal? as protocol to implement ? #51

@asmodehn

Description

@asmodehn

I recently had an issue where floats where embedded into a struct, and checking with equal? on the whole struct didn't round the float (as it does on one float).
I also don't want to have a property defined in a typeclass, with a specific notion of equality that depends on the implementation...

I am thinking that equal? should be defined in a protocol, and implementable for any struct, just like generator is ?
What do you all think ?

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