While we’re talking about package and file design:...
# java-to-kotlin-refactoring
p
While we’re talking about package and file design: Am I the only one missing package privacy? I can somehow understand why they dislike it, but always creating a new module feels like quite a burden for a mid-sized app. How are you tackling that? Creating modules? Or simply don’t care about having everything public? 🤔
d
I can’t say that I really miss package private. I suspect that it’s more relevant when we solve problems with subclassing than delegation, but I can’t really substantiate that.
n
Personally, I care about visibility in published libraries but less so in apps. In both, I prefer Kotlin’s control of visibility relative to compilation unit, rather than package, to Java’s package-protected