It would be nice if you could compare an enum without its associated values i.e a case equality check only rather than case & associated value equality check.
For example:
enum Foo {
case bar(Int, String)
}
let test: Foo = .bar(1, "Hello")
let isEqualWithItsAssocValues = test == .bar(1, "Hello") // true
let isEqualWithoutItsAssocValues = test == .bar(_, _) // also true
This makes it really easy to compare enums if you only care about the case and not its associated values and you wouldn't have to write your own equatable conformance, which could lead to problems if you want to compare with the associated values.
If the compiler could synthesise this or allow comparison without associated values then it would be helpful.
For example, a protocol like CaseEquatable
perhaps?