I have unfinished KEEP "Inline classes" which cove...
# language-proposals
a
I have unfinished KEEP "Inline classes" which covers this simple scenario of single field type-safe alias with requirements (extension functions, cross-module visibility, Java non-visibility, etc), use cases and possible syntax constructions, @dmitry.petrov should I post it as a PR to KEEP so community could discuss it, find issues and solutions or it's something we should wait for?
k
Does it also cover multi-field classes?
a
Well, to some degree. ie you can make an inline type that actually represented by a class with multiple fields, think of it as a type-safe
typealias
. Can you make alias for class with multiple-fields - yes 🙂 But it's definitely not about struct-like constructions that could be allocated directly on stack, at least not for JVM
d
Yes, you can submit a PR for value classes. Truth be told, we are prototyping both design and implementation for quite a while. Nevertheless, we'll take a look.
👍 2
k
I heard (quite a long time ago) you were going to wait with implementing value classes for the Java/JDK implementation so they don't conflict, is that still true?
d
We need some solution, at least one limited to single-field, for more efficient delegated properties implementation.