Since no-one has posted this yet, here it is <http...
# feed
j
s
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
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
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
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