https://kotlinlang.org logo
#feed
Title
j

janvladimirmostert

08/17/2020, 7:50 PM
s

Stephan Schroeder

08/17/2020, 8:42 PM
I'm loving trailing commas 😁 and looking forward to trying out functional interfaces. I'm a bit surprised though that contracts and inline classes still seem to be experimental . Does anyone know what the status is with those two? (Does Kotlin wait for Java to define an inline class format in project Valhalla to be as compatible as possible??)
r

Rohen Giralt

08/17/2020, 9:34 PM
I'll see if I can find the thread, but if I recall correctly contracts isn't coming until at least 1.5 - they're still trying to understand its place on a conceptual level and exactly how it will play with the type system I do hope inline classes become stable soon, though! The only issue I've had with them so far is just kotlinx.serialization - everything else works great.
👍 1
s

suresh

08/18/2020, 12:54 AM
I do hope inline classes become stable soon, though
Any idea how is it going to work with java inline classes? According to a JVM developer, inline classes might preview in september release (https://www.infoq.com/presentations/java-valhalla-inline-types-2020/ , check around
33:15
)
g

gildor

08/18/2020, 7:33 AM
Any idea how is it going to work with java inline classes
They are quite different things, they were called
inline
to avoid conflict with Java proposals for valhalla, but Java renamed them to inliine, so now it would be forever confusion
If Kotlin will support Java inline classes (which I think it will), it will be probably some different way to support them, not
inline
class modifier, because it would be possible to distinguish Jvm inline from Kotlin compile-time inline
6 Views