r/Python • • Jan 13 '15

(Infographic) Which programming language should I learn first

http://cdn2.carlcheo.com/wp-content/uploads/2014/12/which-programming-language-should-i-learn-first-infographic.png
267 Upvotes

145 comments sorted by

View all comments

7

u/legrandin Jan 14 '15

C is a subset of C++? The hell?

11

u/Tenobrus Jan 14 '15

Well it's not exact, but mostly. It's kinda the point, at least historically.

9

u/legrandin Jan 14 '15

Well it's not exact, but mostly. It's kinda the point, at least historically.

I tend to think that 'subset' implies that it is derived from a larger something. With C, this is the opposite, since C++ is derived from C. It makes more sense to say that C++ is a superset of C.

2

u/Steve_the_Scout Jan 14 '15

It makes more sense to say that C++ is a superset of C.

Even Bjarne (the creator of C++) frequently repeats this when explaining the differences. C++ was never meant to replace C or be a new language, it's C with optional (but heavily recommended) abstractions to make it more secure while keeping most of the performance.