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
dmcg
03/29/2022, 10:03 PM
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
natpryce
04/18/2022, 9:48 AM
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