Some vs Any
What problem do some and any solve? var x: Equatable = 10 // Error: Use of protocol 'Equatable' as a type must be written 'any Equatable' var y: Equatable = "10" // Same error Youโs think the compiler should let the above compile, it rightfully doesnโt. The compiler canโt know if the associated type of x, matches with the associated type of y. So it just forbids it. Compiler just doesnโt want to be in situation where youโd try something like:...