Deutsch English Français Italiano |
<vu0u01$22n7b$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: bart <bc@freeuk.com> Newsgroups: comp.lang.c Subject: Re: Loops (was Re: do { quit; } else { }) Date: Sat, 19 Apr 2025 20:36:35 +0100 Organization: A noiseless patient Spider Lines: 62 Message-ID: <vu0u01$22n7b$3@dont-email.me> References: <vspbjh$8dvd$1@dont-email.me> <20250410080629.532@kylheku.com> <vt94q5$3jjod$1@dont-email.me> <vt9628$3hhr8$3@dont-email.me> <vtammh$174ev$1@dont-email.me> <vtavn9$1dp7m$3@dont-email.me> <vtb8nv$1plb2$2@dont-email.me> <vtba81$1qfbm$1@dont-email.me> <vtbc6o$1te2o$1@dont-email.me> <vtbhjv$24api$1@dont-email.me> <vtbn2k$293r1$1@dont-email.me> <vtc19j$2kqlj$1@dont-email.me> <87a58mqt2o.fsf@nosuchdomain.example.com> <vtc7mp$2q5hr$1@dont-email.me> <vtcqf6$3j95s$1@dont-email.me> <vtdh4q$b3kt$1@dont-email.me> <vtf7fe$1qtpg$1@dont-email.me> <vtgfuf$31ug1$1@dont-email.me> <20250413072027.219@kylheku.com> <vtgpce$39229$1@dont-email.me> <vti2ki$g23v$1@dont-email.me> <vtin99$vu24$1@dont-email.me> <vtiuf0$18au8$1@dont-email.me> <vtj97r$1i3v3$1@dont-email.me> <vtl166$36p6b$1@dont-email.me> <vtlcg0$3f46a$2@dont-email.me> <vtnekn$1fogv$1@dont-email.me> <vto2mb$20c4n$1@dont-email.me> <vtu4i5$3hteg$1@dont-email.me> <vtujko$3uida$1@dont-email.me> <vu0so3$22rjq$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 19 Apr 2025 21:36:33 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5c7860f03a8e4f1e49f90b82bdb5768f"; logging-data="2186475"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fRbJsAR+e8siFP6V1TQBj" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:gLGx2RnpIH3GJRMumJmNoxQ2O+w= Content-Language: en-GB In-Reply-To: <vu0so3$22rjq$1@dont-email.me> Bytes: 4396 On 19/04/2025 20:15, James Kuyper wrote: > On 19.04.2025 00:27, bart wrote: >> On 18/04/2025 19:10, James Kuyper wrote: > ... >>> If all you can do is "hope for the best", you're doing it wrong. It's >>> your job to ensure that they are not arbitrary unrelated expressions, >>> but correctly related expressions, and that's no different from your >>> responsibility for all of the other expressions that make up your >>> program. > ... >>> If you find that problematic, you shouldn't be programming in >>> any language, but certainly not in C. >> >> I see it didn't take you long to get to the personal insult. What is it >> with this group? > > You are constantly complaining about how difficult you find it to be to > deal with various features of C that most C programmers have little or > no trouble dealing with. > How could I possibly justify concluding that > the problem lies anywhere other than in your own abilities? Did I say I find it difficult? I said the feature was: Poor, Crude, Primitive, Error prone, Hard to grok, a PITA to write, among other things. You can argue with some of those if you like, but one problem is seeing a complex line headed 'for(...' and now you have to spend time disentangling it to find out what category of loop was intended. EVERY such loop starts with 'for'! So your attitude is to totally ignore such criticism? C is perfect? It's a wonder any other HLL was ever devised! > ... >> The language will not check that those three parts are correct for the >> loop you are trying to express, because there is no way for it to know >> that. > > Yes, it also doesn't check that the three parts that make up A = B + C; > make sense together. That's the developer's responsibility, not the > language's. You don't think the language could have helped more? People do use big compilers now to do a lot of deep analysis of code; are you saying those compilers are not necessary, developers should be able to figure things out for themselves? Or are you saying that it's OK for additional tooling to help out a developer, but it is out of the question for a language to provide a more convenient feature? This is now interesting: suppose I were to say to David Brown that if he can't do his work without his advanced compilers, he shouldn't be coding in C? This is EXACTLY what you are saying. And it is an insult.