Skip to content

More strict symetricity? #1

@jkuchar

Description

@jkuchar

$_equals($one, $other) || $_equals($other, $one) is that correct?

Isn't better to have:

\assert($_equals($one, $other) === $_equals($other, $one), 'not symmetric, when a->b is in relation, b->a must also be in relation')
return $one === $other || $_equals($one, $other) || array compare(..);

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