Re: c / c++ : is it end of era ?
- From: jacob navia <jacob@xxxxxxxxxxxxxxxx>
- Date: Tue, 26 Dec 2006 15:19:41 +0100
shaanxxx a écrit :
I started programming with c. Lot of projects are being done in C++. We
have to move in THE C++.
I read around 3 - 4 books (including Faqs, stroustrup) on c++. What i
found in most of the book is that they criticize c language and c
programmer. And they silently run away from good feature of C.
They have sentence like , "you have to unlearn c to learn C++".
is it the end of C era ?
Stroustrup and writers of Faqs are gurus of technologies. These people
are commenting on C language.
should we believe them?
somewhere it is demoralizing for c programmer.
I just wanted to know what other people thinks on this .
C++ started to eliminate C pitfalls but did not know when to stop,
in the way of complexity.
The problem with C is the lack of higher level constructs
that would allow a simpler and bug-free programming.
C++ started out as a preprocessor that compiled to C, that allowed
people to define classes, do object oriented programming, and
in general, as a way of eliminating the problems of C by
adding a new paradigm (object oriented programming) and
by making stricter type checking.
This led to multiple inheritance (one of the first mistakes), and
then templates, name spaces, and an incredible array of features
that make C++ a language so complex that has been almost impossible for
the compilers to follow.
As it stands now, there are maybe one or two implementations (EDG mainly
and maybe Comeau) that implement ALL of the language. All the other
compilers (gcc and microsoft included) implement some large subset of
the language, but not all of it.
People that understand the whole language are very few, since the
learning curve is steep, and unforgiving.
Obviously a language that started to "fix C" or to make a
"better C" is obviously in need of a reason, and it is not
very difficult to find problems with the approach in C to many things,
since the bugs in the language aren't that difficult to find.
C++ has added complexity without really having solved many of
the problems of C. Still you have to allocate/deallocate manually
the memory you want to use, without having an automatic garbage
collector, for instance.
In my opinion, some of the features of C++ are interesting, and
worthwhile, but too many of them make for a language that is just too
big.
jacob
.
- Follow-Ups:
- Re: c / c++ : is it end of era ?
- From: Ian Collins
- Re: c / c++ : is it end of era ?
- From: Richard Heathfield
- Re: c / c++ : is it end of era ?
- References:
- c / c++ : is it end of era ?
- From: shaanxxx
- c / c++ : is it end of era ?
- Prev by Date: Re: Need an explanation
- Next by Date: Re: Files & dirs: historical reasons?
- Previous by thread: c / c++ : is it end of era ?
- Next by thread: Re: c / c++ : is it end of era ?
- Index(es):
Relevant Pages
|