Reply to post:

What's all the C Plus Fuss? Bjarne Stroustrup warns of dangerous future plans for his C++

karlkarl Silver badge

I agree that C has some advantage over C++ in that it is simpler. This is quite evident by the K&R book being about 1/4 the size of Stroustrup's C++ Language book ;)

However the complexity in some cases is worth it. For example with "safe" iterators it can be set up so that if the data you are iterating through changes (i.e some berk has cleared the container hidden down the call stack), you can know about it (with an assertion).

That said. Some developers I feel over-consume C++ features (especially templates). For example, I present to everyone the GLM challenge. Who can find where the glm::mat4 glm::rotate() function is actually implemented in 1 minute?:

https://github.com/g-truc/glm/tree/master/glm

I'll give you a clue... If you are using an IDE with intellisense. Turn it off. It will probably crash ;)

Contrast this with linmath (ANSI C): https://github.com/datenwolf/linmath.h

GLM is safer but gosh is it more complex. I would hate to extend that thing.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon