Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: About getters/setters Date: Sat, 24 Aug 2019 04:32:48 -0700 Organization: A noiseless patient Spider Lines: 29 Message-ID: <86h86623z3.fsf@mailhub.linuxsc.com> References: <1a05f743-f9a4-47e5-8dc6-64abab4195b0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="6c2dac2dbfb2638a855bf45348184c3b"; logging-data="12575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hW/vFFjYiYBBn2InX133tLdWgJyjxpkA=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:c22+uQHN4WYbemZU6yeNRNPOLao= sha1:Pyow9fhtQkJqgtk3sz8+H03jDGQ= Xref: csiph.com comp.lang.c++:67924 Tiib writes: > On Thursday, 22 August 2019 17:25:24 UTC+3, JiiPee wrote: > >> On 21/08/2019 20:52, Tiib wrote: >> >>> Snipping possible misrepresentation of Herb Sutter and Strange comment considering that nowhere in the thread is any reference given for Herb Sutter's views. Given that you don't know what Herb Sutter writings JiiPee means to refer to here, there is no basis for claiming a misrepresentation, or even a possible misrepresentation (except in the vacuous sense that "all things are possible"). >>> CppCoreGuidelines of isocpp. > >> Sutter says like: "Always make all data members private. The only >> exception is c-style struct where all members are public" > > CppCoreGuidelines at > > does not conflict with it just suggest to prefer that c-style struct > to all trivial setters and getters. That is why your claim seemed > misrepresentation. For what it's worth, I think JiiPee's comments offer a more faithful representation of the core guidelines document than yours do.