Explicit API should also warn about implicit const...
# language-proposals
m
Explicit API should also warn about implicit constructors being
public
. For example I often use factory methods for classes and sometimes forget to make the constructors of these classes
internal
, which is unexpected API surface.
l
I think you can request the feature on kotl.in/issue with that use case.
i
We discussed it when were designing explicit API mode and decided against requiring explicit visibility for primary constructors: https://github.com/Kotlin/KEEP/blob/master/proposals/explicit-api-mode.md#inspection-exclusions
m
Also some good reasons in there, thanks ­čĄö