Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Overuse of 'auto' Date: Mon, 12 Dec 2022 10:25:31 -0800 Organization: None to speak of Lines: 43 Message-ID: <87sfhktr6s.fsf@nosuchdomain.example.com> References: <69e27519-337d-4891-9af3-0cccced7b6abn@googlegroups.com> <87tu2479qc.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="8f58bb52d6806d4b66c4800d914c02f3"; logging-data="2400110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+x887E/itFLPee666zS+SA" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:JZlTly/BBpbomJOiUqj/KZKRYug= sha1:bmaTEdn1J5mD5+e72QVdklNq/14= Xref: csiph.com comp.lang.c++:87835 Juha Nieminen writes: > David Brown wrote: >>>> This is especially true given that >>>> full types in C++ can regularly take more than a single line to write out. >>> >>> There we go again with the brevity argument. >> >> If you can't see the wood for the trees, the code is unhelpfully >> long-winded. > > I don't think you understand. > > The driving principle in writing code should be "this makes it easier to > understand", not "this makes it shorter". I think he *does* understand, but he disagrees. It's easy to assume that someone can only disagree with you because they don't understand what you're saying. [...] >>> Keep your code smart, not stupid. >> >> KISS means "Keep it simple, stupid" - not "Keep it stupid". > > I suppose you choose to insult your readers then, rather than the second S > referring to the code itself. The acronym "KISS" definitely expands to "Keep it simple, stupid", and has since 1960. Nobody here chose what it means. Don't take it personally. https://en.wikipedia.org/wiki/KISS_principle > Either way, I'd rather code be readable and understandable than simple. If those goals conflict, I agree. They very often do not conflict. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for XCOM Labs void Void(void) { Void(); } /* The recursive call of the void */