Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: My C program does not compile or gives segmentation fault Date: Sun, 26 Mar 2017 02:39:00 -0700 Organization: None to speak of Lines: 29 Message-ID: References: <89549322-236e-4a59-9bb5-dc881593a846@googlegroups.com> <1b709495-03da-462d-926f-3ee2be0a7ab5@googlegroups.com> <58d642e0.2297265@news.xs4all.nl> <58d6e0b3.20124312@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="d1e16edf4d87c31e7fe6a303aaa5352a"; logging-data="18100"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uXwnPlgZPqESfMzf/PEBJ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:T+CJzLKawoZwlp+FQODOXHuH3hk= sha1:SOEAZo8Bn9vr3zUjbtp+Mr1iZC0= Xref: csiph.com comp.lang.c:107096 Richard Heathfield writes: [...] > Anyone who is bright enough to understand that addition is commutative > (and thus that x + y gives the same result as y + x) is also bright > enough to understand that comparison for equality is commutative (and > thus that x == y gives the same results as y == x). > > Anyone who is not bright enough to understand commutativity needs to be > looking at other careers. > > Everybody in this thread who has expressed an opinion /is/ bright enough > to understand commutativity, so I really, truly don't see why they are > so upset by 3 == x. Do these same people find it difficult to read B == x? I see that you don't understand. Repeating that addition and equality are commutative is not helpful. We all know that. I assure you that (a) I understand perfectly well that `x == 3` and `3 == x` are equivalent, and (b) I find `3 == x` ugly and jarring. Can we start by acknowledging that I'm not just making that up, and that a lot of people share the same feeling? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"