Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Question About && Date: Sun, 06 Dec 2020 16:41:19 -0800 Organization: A noiseless patient Spider Lines: 43 Message-ID: <86czzmjvm8.fsf@linuxsc.com> References: <86mtyum1uz.fsf@linuxsc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="bcc5e78e97e66444c1bdd30cf2244811"; logging-data="2769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AJoiq3E82V6WB6KaY+GDlQl3tYKBC2VI=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:kR8tLrxmsGQ5aMoaG66Nbl4z/IU= sha1:SgrpGdXzjCpnjUVC+voAsGSuDus= Xref: csiph.com comp.lang.c:157005 "james...@alumni.caltech.edu" writes: > On Friday, December 4, 2020 at 3:07:02 AM UTC-5, Tim Rentsch wrote: > >> James Kuyper writes: >> >>> On 11/28/20 3:03 AM, Chris M. Thomasson wrote: >>> >>>> On 11/27/2020 8:48 PM, Kenny McCormack wrote: >>>> >>>>> In article , >>>>> Chris M. Thomasson wrote: >>>>> ... >>>>> >>>>>> a && b = x >>>>> >>>>> This is a syntax error; this can be corrected by changing it to: >>>> >>>> It was meant to be a pseudo-code. Sorry for not explicitly pointing that >>>> out. >>> >>> Writing something like that as psuedo-code is very weird. [...] >> >> It doesn't strike me as especially weird. Nor all that >> hard to understand either. > > I agree that it's not hard to understand - as syntactically invalid C > code. [...] It being not syntactically valid C helps make it easier to understand than if that were not the case. So I consider that aspect a plus, in that one respect. > One thing I literally cannot do is understand it as x = a && b. > [...] I didn't take it that way. After seeing that it didn't make sense as C, I took it to be a kind of mathematical equation. Of course, I know the original poster Chris Thomasson to be someone who isn't always careful with language, so the funny way of expressing it didn't bother me, and when he later referred to it as pseudo-code that didn't bother me either. Barely noticed it, in fact.