Swift Users:
I’ve been exploring the creation of Decodable response serializers for
Alamofire. However, there doesn’t actually seem to be any way to express the
notion of a generic decoder. The Decoder protocol itself doesn’t require a
`decode(type:from:)` method, and neither JSONDecoder or PropertyListDecoder
conform to Decoder in the first place. Were these facts conscious choices or
oversights? It certainly seems very useful to be able to treat decoders
generically.
Jon Shier
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users