Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: How About Disallowing Assignments In Expressions? Date: Sat, 10 Feb 2024 07:31:38 -0800 Organization: A noiseless patient Spider Lines: 15 Message-ID: <86wmrc49ph.fsf@linuxsc.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: dont-email.me; posting-host="c20874413056af7bcbd7e84e1693869d"; logging-data="3383391"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/G4AaGrWYWlYKR4q93IBWy9YB2F7rGt9w=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:ARwPx2gemAXRZO2ZoXxCHljqE8Q= sha1:bOdBoHxaOWqKFnCpgbFXRyfnrTc= Xref: csiph.com comp.lang.c:382270 Lawrence D'Oliveiro writes: > On Fri, 9 Feb 2024 00:53:42 +0000, Malcolm McLean wrote: > >> while( (ch = fgetc(fp)) != EOF) >> >> is the idiomatic way of accessing a stream a character by character in >> C. So you would disallow this. > > Yes! What code would you write to accomplish the same thing, under the assumption that what you're proposing is adopted? As long as I'm asking, how would you write it in C as it is now?