KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I read that there is no package-private (default in Java) in scala and use public access by default. What are the rationale for this choice? Is it a good practice as the default public access make everything visible, hence part of the API? This means extra typing to encapsulate the fields and methods (whether it be private, scoped private, protected, access).
Tags (comma-separated)
Save Edits
Cancel