Usability of "allMembers and derivedMembers traits now only return visible symbols"
Chris Wright via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 7 18:13:29 PDT 2016
On Wed, 07 Sep 2016 12:21:40 -0700, Ali Çehreli wrote:
> Protection attributes are for protecting programmers from implementation
> changes. If I reach for allMembers or getMember, it's an explicit way of
> saying "I don't care about the consequences."
If it's just about implementation changes, allMembers / getMember is a
way of inspecting types to get what currently exists. It will continue to
be correct in the face of changing fields.
More information about the Digitalmars-d
mailing list