Patrick Steiger
05/21/2023, 4:00 PMinternal
subpackage. What is it for? I mean, isn’t putting internal visibility stuff in the root package the same?
E.g
kotlinx.coroutines.flow
kotlinx.coroutines.flow.internal
What problem does this solve?mkrussel
05/21/2023, 4:11 PMflow
or flow.internal
should access code in flow.internal
. It would be easy to create a static checker to enforce something like that.elizarov
05/22/2023, 7:42 AMinternal
(sometimes impl
is also used) hints that those are not supposed to be used outside. With JPMS you can enforce it, but it also requires you putting all those declarations into a separate package (that you will not export from your library)