Protocol composition in Swift and Objective-C

Protocols in Swift and Objective-C are a powerful tool to decouple your code. They allow you to specify a contract between classes that consume them, but defer a concrete implementation to conformers. They allow you to segregate interfaces and invert cont… Read more

Similar

Generics in Swift

The other day I came across a bug in my RethinkDB driver for Swift. The function that runs the query defines a generic parameter T, which is used to cast the result of the query to a specific… (more…)

Read more »

Was Swift based on Kotlin?

Following Google’s announcement at Google I/O 2017 that Kotlin would be getting first class support on Android, Wesley Reisz spoke to Andrey Breslav, the lead language designer of Kotlin at JetBrains. (more…)

Read more »