Monats-Archive: September 2015

Swift 2.0: Pitfalls mixing protocol extensions and inheritance

This post refers to Swift 2.0, beta 6: Protocol extensions are great to provide default behavior for a protocol. But beware. They expose some dangerous traits when used in combination with inheritance. //: Playground import UIKit protocol Winable:class { func win() -> … Weiterlesen

Veröffentlicht unter Mac | Hinterlasse einen Kommentar | 275 views