Replies: 2 comments
This comment has been hidden.
This comment has been hidden.
-
Because we want to focus our effort on improving the API for Kotlin users, we will not implement this idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🤔 The problem
When declaring an inline value class in Kotlin, the functions receiving it as a parameter are mangled by adding a stable hash code to the function name.
This solution provided by the language makes these functions incompatible with Java: their identifier is invalid because of the
-
character.💡 The idea
The idea is to disable mangling by marking them with the
JvmName
annotation and bringing back their compatibility with Java.✅ Checklist
NotBlankString
#154StrictlyPositiveInt
#160StrictlyNegativeInt
#161StrictlyPositiveDouble
#162NotEmptyList
#157NotEmptySet
#158NotEmptyMap
#159🙏 Help needed
Please give this post a reaction if you are interested in this change and comment below your thoughts on it.
We would love to have your feedback!
Beta Was this translation helpful? Give feedback.
All reactions