Sujet : Re: Loops (was Re: do { quit; } else { })
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 19. Apr 2025, 20:15:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vu0so3$22rjq$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
User-Agent : Mozilla Thunderbird
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?
...
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.