###Subject: isEqual to replace == Equatable Requirement
Hi all,
I would like to propose changing the Equatable protocol to use isEqual(to:Self) -> Bool
, defined inside of a type to replace the currently used operator ==
function, which is defined outside of the type.
###Reasoning:
- Having the conforming function defined inside of the type is more intuitive, since in general functions required for conformance are defined within the type. It feels like an unnecesary detail for learners of Swift to have to stumble through.