-
Notifications
You must be signed in to change notification settings - Fork 169
Duplication of package org.jetbrains.demo.thinkter.model #20
Comments
If you look at the git history, there actually was multi-platform support in here before the repo was publicly released. I suspect it was removed so that this can be a clean reference example without depending on experimental/unsupported features. |
Fair enough. I think it's good to capture this architectural limitation explicitly, until a better solution for sharing code between client and server is in place. I was hoping I could use the techniques here to convert a Java+GWT project to Kotlin, but it's not practical to duplicate that much shared code. I'll have to see what happens with https://youtrack.jetbrains.com/issue/KT-6359 |
This feature is crucial, at work we have around 350 model classes... |
@biberesser |
Agreed. The big point of Kotlin seems to be "stronger typing", and carrying types between FE and BE is crucial.
JSR303 annotations; is there not a way to deal with this in a more "in code" way than using annos. |
The classes in the multi-platform package
org.jetbrains.demo.thinkter.model
are duplicated betweenbackend
andfrontend
(exceptPollResponse
which is missing fromfrontend
).I suspect a full solution for this requires https://youtrack.jetbrains.com/issue/KT-6359 but see also https://github.com/jstuyts/kotlin-multiplatform-recipes
The text was updated successfully, but these errors were encountered: