<@U41BGS868> Why do you think that value types are...
# random
g
@sksk Why do you think that value types are close? Looks like even general architecture of value types on Java is still under consideration. And value types that are not compatible with Java-ones is bad idea in terms of future interop “inner class”? Do you mean “Inline classes”? They allow to solve some use cases right now and even for old JVMs and Android, because it’s just a compiler feature
just have structs instead
So actually value types, or I miss some key difference? It’s also bad idea to introduce potentially incompatible implementation of value types only for Native, because when value types will be available on JVM you want to have the same API as native
s
Yes i meant inline class my bad! From what i understand inline class works like a custom value type but limited to one field only, it's not a class, and is readonly (if i remember correctly Scala has something similar, without that limitation) Well as long as kotlin will get value type i'm fine
g
Hmm, not sure that Value classes in Scala are mutable, I thought that they can use only val, same as inline classes, but I may be wrong