Dissecting Kotlin: Unsealing the Sealed, the SAM, and Other Syntax
summary
Shows concrete changes and tradeoffs: sealed interfaces (Kotlin 1.5) enable exhaustive when checks across interface axes, data objects (Kotlin 1.9) give object declarations equals/hashCode/toString, and unsigned types with literal U suffix clarify bit-level representations for things like ARGB colors. Demonstrates value/inline classes that inline to primitives for performance, uses flicks flicks = 1/705600000 s for video timing, inspects generated bytecode and decompiled output, and explains SAM/functional interface conversions for Java interop.
AI-written summary · about
chapters (12)
- 0:00Idiomatic Kotlin
- 3:53Sealed classes/interfaces
- 8:05Sealed class bytecode
- 9:28Sealed interfaces/multi-axis
- 13:05Data objects in Kotlin 1.9
- 14:48Unsigned integers
- 23:54Value classes/inline optimizations
- 29:54Value class identity
- 30:35Value classes use case
- 33:45Type aliases trade-offs
- 38:19SAM interfaces
- 41:25Idiomatic Kotlin principles








