Swift 4’s Codable
Alp Avanoğlu
2666

Nice wrap-up, thanks for the article.

Suggestion: I’d change Mappable protocol as follows.

protocol Mappable: Codable {
init(json: Any) throws
}

Question: How do we handle transformations? I’d keep date as a Date object instead of a String object. Is there a way to achieve this as of current Swift 4 release?

Bonus: Try Person.arbitrary() = Profit

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.