what about changing the `-` to `_` in order to all...
# language-proposals
e
what about changing the
-
to
_
in order to allow calling function with inline classes from java? https://kotlinlang.org/docs/reference/inline-classes.html#mangling
o
That’s the point, it shouldn’t be callable.
e
why?
e
Because we plan to allow private constructors and init blocks in the future, but the carrier type is exposed to java, so we need a level of protection to avoid Java code passing unsanitized values of inline classes to inline accepting functions. You can always work around by defining a bridge function in Kotlin that does not take inline classes in parameters.
🎉 3
e
this is a blocker for projects using massively inline classes, because it means essentially doubling the code..
d
Perhaps a compiler argument that automatically generates boxed versions of the functions and exposes them to java would be an option?
e
oh yes