Code That Says Exactly What It Means
Steven Schveighoffer
schveiguy at gmail.com
Sun Oct 26 14:55:07 UTC 2025
On Sunday, 26 October 2025 at 06:33:11 UTC, Peter C wrote:
> Among D developers, the idea of adding a new visibility
> attribute like scopeprivate often meets with scepticism. After
> all, D already has private for module-level encapsulation and
> package for sharing across sibling modules. And if you really
> want to lock a class down, you can always put it in its own
> module. So why bother?
>
> [...]
This has been proposed and rejected many times. In D private is
for the module. This is intentional.
-Steve
More information about the Digitalmars-d
mailing list