Why is D unpopular?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Jun 11 06:23:24 UTC 2022


On Saturday, 11 June 2022 at 04:00:32 UTC, Paul Backus wrote:
> IMO the correct way to do this would be to simply allow 
> multiple modules to be declared in the same file, rather than 
> to couple encapsulation boundaries to class boundaries. This is 
> a feature that has been requested many times for D, and one 
> that several other languages have implemented successfully.

Bad idea, it does not help at all, just makes code harder to read 
and navigate. This is how languages detoriate. Just keep it 
simple either add a 'hidden' keyword or leave it as is.

You still don't get a way to protect inner classes from the outer 
classes.




More information about the Digitalmars-d mailing list