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

zjh fqbqrr at 163.com
Thu Jun 9 01:28:28 UTC 2022


On Thursday, 9 June 2022 at 00:38:56 UTC, Mike Parker wrote:
New features add
> complexity to the language implementation and the cognitive 
> load. There has to be a compelling reason to add it.



There is no `cognitive load` at all!
Only the `"module"` encapsulation extends to the `"minimum 
class"` encapsulation that should exist.
If this is a `cognitive load`,then please don't `write a program`.
`C++23's` "`corutine`" is so `troublesome` ,but people are still 
learning it.



More information about the Digitalmars-d mailing list