giso07/01/2021, 10:10 AM
. I was wondering how this use case can be fulfilled with Kotlin. Maybe with a compiler plugin, which is only applied to the main module, granting higher visibility? Or more tightly scoped with a method annotation granting only this method a higher visibility? What are you thoughts, or have I overlooked an already present solution?
tmg07/01/2021, 10:16 AM
then why do you need to wire it outside of the module? whatever depends on it should also be inside that very same module.
Or more tightly scoped with a method annotation granting only this method a higher visibility?if there is such things as
there could also be
wasyl07/01/2021, 10:49 AM
giso07/01/2021, 11:29 AM
wasyl07/01/2021, 11:34 AM
and the API for that (interfaces) as
. So you’d expose implementations to the wiring module, but in
(or elsewhere) you’d depend not on the implementation module, but on the wiring module
giso07/01/2021, 11:40 AM
wasyl07/01/2021, 11:50 AM
annotation solution is the most reasonable
giso07/01/2021, 11:57 AM
rnett07/01/2021, 6:20 PM
annotation. It's more documentation than a hard forbid, but it should prevent inadvertent usages.
giso07/01/2021, 8:45 PM