~/talk

Kotlin Puzzlers, Vol 3

Talkat KotlinConf 2019 · 2019-12-04..12-06· [kotlin]
links:none on file
slides:none on file

Kotlin claims to avoid Java puzzlers but the session shows concrete counterexamples: live short programs run in an IDE and the JetBrains quiz reveal surprising behaviors, compiler crashes and platform quirks. Demonstrations use the Kotlin playground and real JVM runs, sometimes failing. Notable specifics include calling toString on null returns "null" via Any? extension, NaN compares unequal to itself and Kotlin fixed JVM behavior, weird progression stepping, a compiler crash on operator overloading, contracts allowing unsafe nulls, and suspend functions appearing to return the wrong type.

AI-written summary · about

  1. 0:00Start
  2. 12:39Fool the Compiler
  3. 20:41How Do We Fix the Code
  4. 24:27Verifying
  5. 36:21Sum with Two Parameters with Default Values
  6. 41:18Contracts
  7. 44:51Co-Routines
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.