Code That Says Exactly What It Means
Peter C
peterc at gmail.com
Mon Oct 27 10:14:43 UTC 2025
On Sunday, 26 October 2025 at 14:55:07 UTC, Steven Schveighoffer
wrote:
>
> This has been proposed and rejected many times. In D private is
> for the module. This is intentional.
>
> -Steve
btw. just for interest sake if nothing else... Swift's 'privacy
saga' is a neat case study in how language design collides with
developer expectations.
In the end, developers mental model of 'classes as encapsulation
units' was too entrenched for the Swift design team to ignore.
Mental models can be really hard to change.
https://swiftunwrapped.github.io/episodes/4e7ad642/
More information about the Digitalmars-d
mailing list