Dissecting the stdlib II
summary
Reads the stdlib source to show concrete code patterns: operator overloading implemented as extension or member functions (example: Ship/crew plus and minus, which compile and run), compiler behavior that auto-derives plusAssign from plus and can change semantics, use of extension functions to add iterator and contains without implementing interfaces, destructuring via componentN and the componentN limit for non-data classes, infix functions as a clearer alternative to +=, and bytecode checks that explain why interoperability with Java behaves as it does.
AI-written summary · about
chapters (18)
- 0:00Intro
- 1:42What is Kotlin
- 5:32Conventions
- 7:20Interoperability
- 11:00Operators
- 12:47Extension Functions
- 29:15Leveraging Operator Overload
- 30:23IDE Help
- 31:00Overload
- 31:53Destructuring declaration
- 32:37Destructuring syntax
- 33:43OperatorFun
- 35:10Initializing variables
- 36:10Component functions
- 36:56Infix notation
- 38:43Infix syntax
- 39:18Member functions
- 39:58Comparison








