Join Slack
Communities
Powered by
Why kotlin default modifier is public?
# getting-started
b
Byeol
08/03/2022, 11:14 AM
Why kotlin default modifier is public?
a
AndreyVanDenHaag
08/03/2022, 11:24 AM
Do you ask about the method modifier ? Class modifier ? variable modifier ?
b
Byeol
08/03/2022, 11:27 AM
Method and variable
r
Robert Williams
08/03/2022, 11:37 AM
Explained here:
https://blog.jetbrains.com/kotlin/2015/09/kotlin-m13-is-out/#Visibilities
Robert Williams
08/03/2022, 11:38 AM
Pretty interesting follow-up discussion here:
https://discuss.kotlinlang.org/t/kotlins-default-visibility-should-be-internal/1400
m
mkrussel
08/03/2022, 1:04 PM
This contains why they switched from internal to public.
https://discuss.kotlinlang.org/t/a-bit-about-picking-defaults/1418
👍 1
r
Richard Gomez
08/05/2022, 8:19 PM
I'm glad things are public by default instead of package private. I still wish there was a package private visibility.
5
Views
Open in Slack
Previous
Next