I’ve been trying to find a way to perform validati...
# feed
d
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
We're going to support init blocks in inline classes soon, see https://youtrack.jetbrains.com/issue/KT-28055
👍 1
d
Ooh, interesting, thank you