Using closure in function scope to make "real" private class members

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Jun 8 08:09:07 UTC 2022


On Wednesday, 8 June 2022 at 07:30:43 UTC, forkit wrote:
> I don't want to be told I have to do the one-class-per-file 
> thing, and I don't want to have to go off and write a 
> linter/static-analyser.

Writing a linter is no more work than making the compiler do it. 
You've got the DMD source.

So what you basically say is that you don't want to write the 
linter, you want somebody else to do it for you.

In other words you don't nobody cares enough about this issue to 
put in the work.

Which isn't particularly surprising since this is one of the 
minor issues in the language.



More information about the Digitalmars-d mailing list