Sujet : Re: do { quit; } else { }
De : rjh (at) *nospam* cpax.org.uk (Richard Heathfield)
Groupes : comp.lang.cDate : 09. May 2025, 19:11:40
Autres entêtes
Organisation : Fix this later
Message-ID : <vvlggs$2uvnf$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Mozilla Thunderbird
On 09/05/2025 18:07, Scott Lurndal wrote:
Richard Heathfield <rjh@cpax.org.uk> writes:
<snip>
Four important ways that C scores over other languages are:
>
* Speed
* Simplicity
* Size
* Portability
>
The more you add, the more likely you are to slow it down, the
more complex you make it, the bigger it gets, and the harder it
is to port.
To be fair to C++ (not to C++ fanatics, however), it is
worth pointing out that one doesn't need to use all the
C++ crapola to leverage some of the good features of
C++ (C with classes, basically) and obtain the same four
important characteristics you raise above.
Sure. On the other hand, C++ already has classes.
If I want to tighten a nut, I use an adjustable spanner. If I want a hole, I don't pick up a bit in the spanner's jaws and do a cack-handed job; I pick up a drill. Tools don't compete... or shouldn't.
I have classes at my fingertips whenever I want them, I don't have to wait 20 years for the ISO guys to change C, and C gets to stay light and tight.
-- Richard HeathfieldEmail: rjh at cpax dot org dot uk"Usenet is a strange place" - dmr 29 July 1999Sig line 4 vacant - apply within