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: Mon, 27 Mar 2017 16:22:12 -0700 Organization: None to speak of Lines: 32 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="621a15f5f24560a56e85ad6532f35357"; logging-data="8922"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FIJB5v2yeYrr9wKGr6CfO" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:GOl3xv7NFzkfX9tfUc9ui8vnF/k= sha1:U7+iG+jgIla3ruKt4ldXuwMk4Gw= Xref: csiph.com comp.lang.c:107230 Ike Naar writes: > On 2017-03-27, Richard Heathfield wrote: >> On 26/03/17 12:37, Ike Naar wrote: >>> On 2017-03-26, Keith Thompson wrote: >>>> I find `3 == x` ugly and jarring. >>> >>> Yes, it stutters ("three equals equals x"). >> >> And "x equals equals three" doesn't? > > It does. And that is why I don't find the "ugly and jarring" > arguments very convincing. C is full of constructs that are ugly > and jarring, but that does not mean that C is not useful. The > assignment operator is ugly and jarring. The stuttering "==" syntax > of the equality operator is ugly and jarring. Octal constants are > ugly and jarring. Integer promotion rules are ugly and jarring. > Declaration-follows-use is ugly and jarrig. And so on. Despite all > that, useful software can be written in C because programmers have > learned to live with those ugly and jarring constructs. > > I really don't understand why one of the things that isn't ugly > and jarring (the symmetry of the == operator) is found ugly and > jarring in some people's eyes. Correct, you don't. I'm not entirely sure I understand it either. I've tried to explain it as well as I can, but I may have failed. -- 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"