Using closure in function scope to make "real" private class members
zjh
fqbqrr at 163.com
Tue Jun 7 08:49:17 UTC 2022
On Tuesday, 7 June 2022 at 07:56:30 UTC, Dom Disc wrote:
> Think of it like coding style guides: you may not like them
> because you would prefer a different style, but they increase
> the readability by large, so learn to live with them!
This is not `style` at all, because the changes are `very small`!
It does not destroy `readability`, but adds a `keyword or
attribute` .
`Small changes` and great improvements in `class encapsulation`
.and are well worth it.
More information about the Digitalmars-d
mailing list