Conform Never to CustomStringConvertible
Swift Forums
Conform Never to CustomStringConvertible
Introduction Following the precedent set by proposals like SE-0215 (Equatable/Hashable) and the more recent adoption of Codable for Never, I would like to pitch adding CustomStringConvertible and CustomDebugStringConvertible conformances to the Never type. Motivation Currently, Never conforms to a wide range of standard library protocols, making it an excellent tool for representing impossible states in generic contexts (such as Result<T, Never> or custom enum wrappers like Either<L, Never>). ...
0 comments
No comments yet.