Changes generic constraints from Encodable (which supports encoding a type to an external representation like JSON) to Codable (which also supports decoding a type from an external representation). This will allow more flexibility in the future and since the compiler can automatically synthesize Codable conformance it should have no impact on usage.
To support this I added Decodable conformance to Never and throw a DecodingError.valueNotFound error in the initializer implementation.
Changes generic constraints from
Encodable
(which supports encoding a type to an external representation like JSON) toCodable
(which also supports decoding a type from an external representation). This will allow more flexibility in the future and since the compiler can automatically synthesizeCodable
conformance it should have no impact on usage.To support this I added
Decodable
conformance toNever
and throw aDecodingError.valueNotFound
error in the initializer implementation.