Path: csiph.com!1.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!gandalf.srv.welterde.de!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Why does the -> operator exist ? Date: Tue, 08 Aug 2023 05:49:46 -0700 Organization: A noiseless patient Spider Lines: 20 Message-ID: <86pm3xbswl.fsf@linuxsc.com> References: <87fs6cso8n.fsf@nosuchdomain.example.com> <86fs5ivxfu.fsf@linuxsc.com> <874jlyq8re.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: dont-email.me; posting-host="996336b78d58b8cbe9ae682ecb3e6882"; logging-data="3580797"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3pU37N4//0Ng2aF6WRVBldaWQtQqMK4o=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:kXTOuEIH93Y9LzPh1TN+UFwl66s= sha1:BX3dn6O+f/h2iLAlv6yr5Vt2lnw= Xref: csiph.com comp.lang.c:171820 Keith Thompson writes: > Tim Rentsch writes: > >> Keith Thompson writes: >> >>> [...] I would argue that using `->` rather than `.` when the >>> prefix is a pointer makes for more explicit code, which is a >>> good thing; [...] >> >> More explicit is not always better. > > No, it isn't. > > If you had anything to say about this particular case (`->` being > more explicit than `.`, and whether it's better), this would have > been a good opportunity to say it. In the particular case of using '.' instead of '->', more explicit is not always better.