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

Max Samukha maxsamukha at gmail.com
Wed Jun 8 12:49:27 UTC 2022


On Wednesday, 8 June 2022 at 11:52:32 UTC, forkit wrote:

> Yes, I agree. Too much typing ;-)
>

To me, it's not as much about typing as about unnecessarily using 
a concrete name for an abstract concept.

For example, 'this' as the name for constructors/destructors is 
an improvement over C++. At the same time, 'eponymous' members of 
templates is a regression.



More information about the Digitalmars-d mailing list