Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the concept of type erasure in Swift programming through this 22-minute conference talk from try! Swift Tokyo 2016. Delve into the intricacies of types, learn the meaning and necessity of type erasure, and understand its practical applications. Follow along as speaker Gwendolyn Weston, a developer at PlanGrid, guides you through concrete and abstract types, instantiation of abstract types, and the challenges that necessitate type erasure. Discover how to handle covariance in Swift, examine the downsides of type erasure, and gain insights on preserving type information. Conclude with a comprehensive recap and practical advice on mastering type usage in Swift development.
Syllabus
Intro
Type Definition
Concrete vs Abstract Types
Instantiating Abstract Types
Pokemon
The Problem
Type Erase On
Covariance
Downside of Type Erase
Type Information
Recap
Type erasure
Covariance in Swift
Best way to learn how to use types
Type erasure definition
Taught by
try! Swift Conference