Why do people still use C ?

Started by
121 comments, last by Oluseyi 19 years, 6 months ago
Quote:Original post by Crayolia
C is 5x easier to learn than C++.
C is 5x easier to comprehend than C++.
C theoretically should run faster than C++ (Microsoft's compilers all suck [Yes, this dates all the way back to MASM], and favor OO)
C has 5x less suprises then C++.


1. No, it's 5x harder. Learning the language doesn't mean you know how to safely program. C++ is much easier and safer than C if your talking about actually making things. There is more to a language than it's syntax.

2. Yes, until you start handcrafting C++'s built in features for yourself. Which then is easier to comprehend? Actually, even the hacked things in C++ (functors, multiple dispatch, any meta-programming) are even more hacked in C.

3. First of all: Obviously, if you use some of C++'s more advances runtime features, it will run slower than C. But using those features in C will be even slower than in C++. Next, how can a compiler favor object orientation? That doesn't even make sense. Lastly, VC2003.NET's optimizing compiler is the fastest compiler that exists. Or do you have a benchmark that proves it "sucks"? Maybe, its just a hatred Microsoft...

4. Because it has less features. Using someone's handcrafted features are more suprising that C++'s built in ones.
Not giving is not stealing.
Advertisement
C++ is not slower than C. Every single feature in C++ has a well-defined cost, and a good programmer should know exactly what the compiler is doing in the background. If you do not use a certain C++ feature, it does not cost you anything.
“[The clergy] believe that any portion of power confided to me, will be exerted in opposition to their schemes. And they believe rightly: for I have sworn upon the altar of God, eternal hostility against every form of tyranny over the mind of man” - Thomas Jefferson
This thread is now officially stupid. Go do something productive.

Closed.

This topic is closed to new replies.

Advertisement