Re: Why We Use C Than C++...
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Fri, 13 Jan 2006 12:30:26 +0000 (UTC)
henryk.mueller@xxxxxx said:
>
> Dag-Erling Smørgrav schrieb:
>
>> > C++ is not faster or slower than C if you DO the same.
>>
>> in which case there is no point in chosing C++ over C.
>
> Well, the point is that you can do a lot more with C++ - if you want!
No, the two languages have equivalent computational power. This is perhaps
more obvious when you realise that you can write a C++ compiler in C or a C
compiler in C++. So anything you can compute in one language can clearly be
computed in the other, too.
<snip>
> I personally really like the beauty and robustness of a lean interface
> wrapper class that looks very sophisticated from the outside but
> actually contains only a lot of inline stuff that gets and sets some
> port registers...
That's precisely the wrong use for C++. A good C++ class (or C module)
should be like a duck - calm and smooth on the surface, and paddling
furiously underneath. Clean interfaces are much to be preferred to
"sophisticated" interfaces. "Sophisticated" is just another word for "hard
to use and therefore bug-prone".
> For my part, I think that plain C just looks ugly and is so damn old
> school... ;o)
Aesthetic appreciation is notoriously non-portable.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: Why We Use C Than C++...
- From: August Karlstrom
- Re: Why We Use C Than C++...
- From: henryk . mueller
- Re: Why We Use C Than C++...
- References:
- Why We Use C Than C++...
- From: sonugeetha@xxxxxxxxx
- Re: Why We Use C Than C++...
- From: Richard Heathfield
- Re: Why We Use C Than C++...
- From: Dag-Erling Smørgrav
- Re: Why We Use C Than C++...
- From: henryk . mueller
- Re: Why We Use C Than C++...
- From: Dag-Erling Smørgrav
- Re: Why We Use C Than C++...
- From: henryk . mueller
- Why We Use C Than C++...
- Prev by Date: Re: Why We Use C Than C++...
- Next by Date: Re: getting current date in C in the VC environ
- Previous by thread: Re: Why We Use C Than C++...
- Next by thread: Re: Why We Use C Than C++...
- Index(es):
Relevant Pages
|