`restricted` member variables

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Jun 23 06:09:41 UTC 2022


On Thursday, 23 June 2022 at 05:51:47 UTC, forkit wrote:
> Even Javascript has realised this recently. It's more powerful 
> than D now, as far as strong typing goes! I never thought I'd 
> say that...yeepers!

Yes, I think TypeScript paved the way. TypeScript actually gets 
many things right, except the stuff it gets from JavaScript... 😁

> But really, the burden of typing this, just once in your class:
>
> private(this):

My experience from C++ is that I end up with multiple «private:» 
to get the best structure.

D needs to stop thinking that it can take just one more @ugly. 
Syntax matters.



More information about the Digitalmars-d mailing list