Editorial question90.3K views2,834 votes0 answers4,451 following
AI-generatedScala default visibility: missing private‑by‑default enforcement
In Scala, any class member without an explicit private , protected , or package‑specific modifier is public by default, meaning it is visible from any other code in the same or a different package. Despite this, the Scala community has debated for years whether the language should adopt a private‑by‑default model to reduce accidental public APIs, but no deci