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

dmcg

11/23/2020, 9:57 AM
I’ve been trying to find a way to perform validation on inline classes. The language designers really don’t want to allow this, as it would make Java interop unsafe in some circumstances. If you have a pure Kotlin codebase that’s a shame. So I present a hack to get validated inline tiny types in Kotlin. http://oneeyedmen.com/inline-tiny-types.html
i

ilya.gorbunov

11/23/2020, 1:26 PM
We're going to support init blocks in inline classes soon, see https://youtrack.jetbrains.com/issue/KT-28055
👍 1
d

dmcg

11/23/2020, 1:28 PM
Ooh, interesting, thank you
3 Views