Let's take a look at Kotlin's support for non-denotable intersection types, and how we can even pass them to functions with compile-time type checking!
✨ New to Kotlin? Start here: https://typealias.com/start/
... or pick up the new Leanpub Edition! https://book.typealias.com/
🚀 I just launched a new email newsletter!
Sign up here: https://newsletter.typealias.com/
☕ Get your own Mr. Grumpy Recalcitrant Man mug here:
https://www.redbubble.com/i/mug/Mr-Gr...
00:00 State of Intersection Types in Kotlin
00:45 Introduction to Intersection Types
01:30 Example Code Walkthrough
02:30 Runtime Type Check Approach
05:30 Compile-Time Type Check Approach
07:05 Alternatives and Trade-Offs
#kotlin #androiddevelopment