Comment on guarding on enum value Instead of extending Equatable, you can just have RawValue and compare it: if A.rawValue != B.rawValue { ... } Programming Languages Swift Feb ’23