Mark Lewis
Oct 11, 2021

--

Records introduce some immutability to Java, but one of the things missing from both Java and Kotlin is immutable collections in the standard library. Kotlin has read-only collections, but they aren't thread-safe because they aren't actually immutable. This is an area where I would argue both languages still lag well behind Scala.

--

--

Mark Lewis
Mark Lewis

Written by Mark Lewis

Computer Science Professor, Planetary Rings Simulator, Scala Zealot

No responses yet