3 ms·
> Codable protocol in Swift is game-changing Which is really weird, considering Objective-C had automatic "activation/passivation" from the beginning (early 8
by mpweiher 8y ago
> Codable protocol in Swift is game-changing
Which is really weird, considering Objective-C had automatic "activation/passivation" from the beginning (early 80s), and it was pretty trivial to adapt similar mechanisms later.
- maxdesiatov 8y agoExcept that in Objective-C it's a runtime feature, which is by definition slower. Swift's Codable implementation is generated by the compiler or is hand-written with an obvious benefit of a stronger type system.
- mpweiher 8y agoHave you measured this? (I have)