https://kotlinlang.org logo
#getting-started
Title
# 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
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