Using closure in function scope to make "real" private class members
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Jun 6 11:26:35 UTC 2022
On Monday, 6 June 2022 at 11:17:39 UTC, zjh wrote:
> You don't need remember it at all, because only those who need
> it use it .
Doesn't work, you need to read other people's code.
Rarely used things should usually not be in the language.
> Like `C++'s` `friend`, I don't use it at all. I don't care.
Oh, but I remember most of C++'s language features! The C++
language itself is not so big.
The complexity in C++ is elsewhere (what to do where if you want
to avoid such and such problem, how to solve this and that issue,
etc).
More information about the Digitalmars-d
mailing list