Skip to content
0:00 / 0:00

#existentialtypes#anykeyword#swift5.6

"any" Keyword and Existential types in Swift

Swift and Tips

13K subscribers • 12 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

11K views4 years ago1 recommendation

Programming languagesSwiftLanguage design and type systems

Pedro Rojas explains the 'any' keyword introduced in Swift 5.6, existential types, and how they affect legacy code.

In this video you will understand the new keyword "any" in Swift 5.6, why it was added to the language, and why it could break your legacy code if you don't pay attention! ------ Resources: * Porposal: github.com/apple/swift-evolution/blob/main/proposals/0335-ex… * any's source code: github.com/apple/swift/pull/40282/files * Existential types: docs.swift.org/swift-book/LanguageGuide/Protocols.html#ID275 * Swift 5.6: swift.org/blog/swift-5.6-released/ ------ Videos related: * Generics: youtube.com/playlist?list=PLHWvYoDHvsOVP-9UvMBBYJCqxrJ3E8Cry * Protocols: youtube.com/playlist?list=PLHWvYoDHvsOX_H712wbhzSW0xqHsFy2j9 * Opaque types: youtu.be/C4WQFU7QrmM ----- Don't forget to subscribe to the channel, like it, and follow me on social media: Twitter: twitter.com/swiftandtips twitter.com/pitt500 Finally, ask me for a video you would like to see next 😄! Credits: - Music by Wataboi from pixabay.com/ - Video edited with Final Cut Pro

Why it's here

1 person recommends this

u/pitt500in r/swift • Recommends

"any" Keyword and Existential types in Swift