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.