"any" Keyword and Existential types in Swift

Опубликовано: 07 Октябрь 2024
на канале: Swift and Tips
9,180
394

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: https://github.com/apple/swift-evolut...
any's source code: https://github.com/apple/swift/pull/4...
Existential types: https://docs.swift.org/swift-book/Lan...
Swift 5.6: https://www.swift.org/blog/swift-5.6-...

------
Videos related:
Generics:    • Generics  
Protocols:    • Protocols  
Opaque types:    • Opaque types: Masking your concrete t...  

-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:
  / swiftandtips  
  / pitt500  

Finally, ask me for a video you would like to see next 😄!

Credits:
Music by Wataboi from https://pixabay.com/
Video edited with Final Cut Pro