3 ms·
It's important to note that `data class` works on JVM platforms before version 16, and the Kotlin compiler will check the additional constraints and generate re
by tadfisher 4y ago
It's important to note that `data class` works on JVM platforms before version 16, and the Kotlin compiler will check the additional constraints and generate records if you add the `@JvmRecord` annotation. This is a reasonable approach for a non-Java JVM language, especially considering records is an ABI- and API-incompatible addition.