Why functions in kotlin stdlib are explicitly `pub...
# announcements
d
Why functions in kotlin stdlib are explicitly
public
?
a
I guess it's related to coding conventions for libraries:
Always explicitly specify member visibility (to avoid accidentally exposing declarations as public API)
https://kotlinlang.org/docs/reference/coding-conventions.html#coding-conventions-for-libraries
đź‘Ť 1
j
It was rumored there would eventually be a compiler mode to enforce this, but no sign of it yet. I very much am against public-by-default so I really want it.
d
I was wondering if there were plans to make
public
mean something like “published”.