Code That Says Exactly What It Means

zod no at no.no
Wed Oct 29 17:30:35 UTC 2025


On Wednesday, 29 October 2025 at 13:55:42 UTC, jmh530 wrote:
> On Tuesday, 28 October 2025 at 22:36:58 UTC, Lance Bachmeier 
> wrote:
>> [...]
>
> I should preface this by repeating again that I really don't 
> care about whether to make this change...
>
> [...]


the thing is, it doesnt actually solve anything. if you have 
access to the module, you can simply change the class to gain 
access. you can simply cast the class to something. so all it 
really does it prevent accidential use.
and you can have the same thing by just naming your variables 
accordingly.

the whole thing only makes sense when you have a closed 'module' 
someone else accesses without the ability to edit it. and we have 
that.

also every language addition (even minor ones) make the language 
very complex and harder to maintain and understand.



More information about the Digitalmars-d mailing list