Xcode Playgrounds are a great way to share sample code. They allow you to communicate ideas effectively without getting bogged down in implementation details. The question is: how do you ensure that things continue to work with each new version of Swift and platform SDKs?
In Swift 4,
a type that conforms to the
can be encoded to or decoded from representations
for any format that implements a corresponding
Swift Codable can automatically synthesize initializers that decode models from JSON. But how does this generated code compare to what it replaces?