-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
jacob navia wrote:
|
| Why C?
|
| Contrary to the opinions of most people in this group I think that C has
| many advantages over C++: simplicity, being the most important.
In more ways than one. I would agree with this analysis.
(Oh, and the group is comp.lang.c. I don't think too many people here
really wish they were posting to comp.lang.c++.
)
|
| I do not think that C is a language for people that do not want to
| learn anything else (as Mr Tisdale remarks) but I am of the opinion that
| C can be used as a general purpose programming language where you can
| develop GUI application and many other kinds of software.
You can indeed develop GUI applications in C, as the Gnome project has
proven. GUI applications are more commonly developed in an
object-oriented style, however, because the OO ideas about object
frameworks seem to map well to the domain of graphical applications.
|
| C is not "object oriented" and as such, it doesn't impose a framework
| on the programmer that is implicit n the whole language. You are free,
| in C, to use the paradigm that fits the application best.
This is where I disagree. C++ is more multiparadigmatic than C, by
almost any metric. You are not required to use objects in C++. You can
write reams of C++ code without once defining a class or inheriting from
one.
Your above statement is simply wrong. That isn't a matter of opinion.
|
| I do not see C as dead and static, on the contrary, I have tried within
| the lcc-win32 compiler system to introduce extensions that make C
| programming easier without introducing undue complexity: default
| arguments, operator overloading, and some others.
And none of that is relevant to C or to this newsgroup. I doubt the next
Standards committee will look at lcc-win32 (does lcc exist on any
non-win32 platforms?) for a list of features C needs. You'd have better
luck trying to convince the gcc people that your extensions would work
well in their C frontend, simply because what's in gcc is at least known
to a very wide community.
|
| C++ is seldom portable, and even code that compiled 4 years ago will not
| compile in more recent versions of the same compiler. When you need
| software that will have to be rewritten in a few years, you can use it.
| For software that needs to run longer, C is the language of choice.
You could have said the same things about C over a decade ago, when C89
conformance was still iffy in major compilers. Conforming C++ compilers
have existed for a while now, and conforming C++ programs are guaranteed
to keep working for a long, long time. C++ written to compile on
nonstandard compilers will unfortunately become a hassle for future
programmers, but there is little reason to code that way now.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org
iD8DBQFBhzxNKxatjOtX+j0RAjKxAJ9+BCcFWE4eCdJm10mMVnTBXI/Z+ACfScH1
7KlmQEWOZmvqIdfBYzLCxo8=
=5l5R
-----END PGP SIGNATURE-----