SE-0295: Codable synthesis for enums with associated values (second review)

I wonder what @itaiferber thinks about this sentence. Codable was designed in order to decouple the coding format from the Codable types. Customization, when possible, is only available via decoder or encoder instances (userInfo, or properties as in Foundation encoders). In my previous message, I'm suggesting that the enum type itself becomes responsible for its formatting, and this clearly goes against the initial design choices. Hence this genuine question :-)

2 Likes