Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Keep Calm and Type Erase On

try! Swift Conference via YouTube

Overview

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

Reviews

Start your review of Keep Calm and Type Erase On

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.