[swift-evolution] [Proposal] Foundation Swift Archival & Serialization
brent at architechies.com
Tue Mar 21 02:15:29 CDT 2017
> On Mar 20, 2017, at 12:31 PM, Itai Ferber <iferber at apple.com> wrote:
> I don’t think there’s much of a difference between adding an "optional" primitive (which has a default implementation in terms of a different primitive) and simply having that type adopt Codable itself and not be a primitive. You can still switch on the type dynamically (and we do), but you don’t need the optional overload for it.
There's an important exception to that: You can't switch on a protocol which has associated types, like BinaryInteger or FloatingPoint.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution