Adding magic to Swift with SwiftGen and Sourcery

Generics & Extensions in Swift

Generics improve reusability of code in a dynamic language style, while retaining compile time type safety. With generics we can copy some of freedom known from dynamically-typed languages to Swift. I’m going to show the power of generics in Swift, from very basic examples of generic functions to advanced topics like constrained extensions. I’m also going to talk about Swift 4 and the conditional conformances proposal.

Why talk about generics in Swift in the first place? Because they’re fun! More importantly, Swift can be tough to learn for people with dynamic languages background and even with mixed approach language like Objective-C. Generics add flexibility and some magic to static Swift.

Share

Session info:

Speaker: Paweł Brągoszewski

Senior iOS Developer at Hypermedia

Date: 16 March 2017

Time: 09:00 - 12:30

Relevant tags:
Architecture Swift

See all speakers

See all videos