Kotlin Puzzlers, vol 2
summary
Live demos on Kotlin 1.3 RC with progressive mode show concrete gotchas: using return as an expression of type Nothing makes print("Hello") and print("World") run then return short‑circuits the rest; Int unary minus and extension precedence causes a compile error on MIN_VALUE.inc; unsigned decrement bug used to produce wrong wraparound but is fixed; missing semicolons split lines so a neighbor count drops from six to three; lambdas capture loop variables so prints become 3 3 3; uninitialized properties cause NPEs during object init; some delegates break destructuring.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:06What Are Programming Classes
- 3:00Nonsense Code
- 9:40Unsigned Types
- 10:06Unsigned Integers
- 18:30Builders
- 21:36How To Fix Our Builder
- 40:14Cast to Nothing
- 43:45Objects
- 44:06Cycle Dependencies








