> On Mar 20, 2017, at 12:31 PM, Itai Ferber <[email protected]> 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.

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to