Kotlin vs Scala
summary
Kotlin claims near-perfect Java interoperability, shows coroutines as language feature (suspend functions compiled to continuations) that run on dispatchers, and proves concise null-safety with nullable types with ? and Elvis operator (80% of users reportedly love it). Examples include data classes with generated componentN destructuring, extension functions that add methods to Java types, and a collections facade over mutable Java lists. Scala keeps a richer type system, full pattern matching, implicits and functional libraries; Kotlin compiles to JVM and JS, jumps Android adoption after Google 2017, and is learnable in hours rather than weeks.
AI-written summary · about
chapters (26)
- 0:00Intro
- 2:37Facts about Kotlin
- 5:26A simple class
- 5:42Comparing oO between Scala & Kotlin
- 7:46Inheritance
- 8:27Value classes
- 9:56Declaring and Calling Functions
- 13:06Functions under the hood
- 15:31Optional Values
- 19:00Nullable Types
- 19:42Pattern Matching
- 22:27Destructuring
- 24:33Composition
- 26:55Pimp my Library Scala
- 28:59Extensions in Kotlin APIs
- 30:28Extensions ++ (Function types with receiver)
- 33:16Collections
- 35:16Collection Examples
- 36:16Sequential Programming...
- 36:37Async on the other hand...
- 37:52Kotlin Coroutines to the rescue
- 40:02Kotlin Coroutines under the hood
- 41:10Kotlin Coroutines Interoperability under the hood
- 41:37Some final words on Coroutines
- 44:38Interoperability Example
- 45:42Language Philosophy








