I'd like to share this very good news here: <https...
# arrow
j
I'd like to share this very good news here: https://youtrack.jetbrains.com/issue/KT-28056 https://youtrack.jetbrains.com/issue/KT-28055 ...these seem to have arrived in the latest 1.30M1 Kotlin-Release and relate to the possibility to have inline-classes with initialisation, which should be good news to all validation- and DDD-ValueObjects afficionados 😉
🤯 6
t
Thanks this is huge for me ! I will try this immediately 😄
👍 1
j
..now for the usual hunt for the new dependencies 😆 😢 good luck
😅 1
"Pro-Tip" never press this button in the Gradle section 😂
for a jvm-only project, this does it for me
Copy code
plugins {
    kotlin("jvm") version "1.4.30-M1"
otherwise it is this plugin
Copy code
id("org.jetbrains.kotlin.jvm") version "1.4.30-M1"
👍 1
j
Non-public constructors for inline classes is so good! They still box a little too much imo but they are slowly getting better. God I wish we had haskell newtypes everywhere 😅
👍 4
t
Still waiting for Arrow's refined types 😄
arrow 6
😎 1
j
Yeah compile time checked refined types which are also inline are gonna be great. Especially since arrow-meta has the freedom of just ignoring support for java-to-kotlin calls (which holds kotlin back quite a bit in several places)
👍 5
s
me too, refined types is the feature I look forward to most