While it's good to be cautious about visibility and make sure things cannot be accessed unintentionally, in my experience the extra ceremony does not deliver enough benefits in this case.
Looking at other languages, Scala (pub default) vs. Kotlin (pub not default) give a direct comparison, and the non-superiority of the latter.
Extracted from https://github.com/dinfuehr/dora/issues/49#issuecomment-907657650.
While it's good to be cautious about visibility and make sure things cannot be accessed unintentionally, in my experience the extra ceremony does not deliver enough benefits in this case.
Looking at other languages, Scala (
pub
default) vs. Kotlin (pub
not default) give a direct comparison, and the non-superiority of the latter.