r/programming • • Dec 17 '08

Linus Torvald's rant against C++

http://lwn.net/Articles/249460/
917 Upvotes

919 comments sorted by

View all comments

Show parent comment

2

u/go-ahead-downvote Dec 17 '08

Bwahahahahahaha - what do overloaded operators communicate other than "everything you think you may know about my code is probably wrong"?

2

u/karlgluck Dec 17 '08 edited Dec 17 '08

Yes, that's true, but that's why you don't use them. There are some features of C++ that were not well thought out, but...

What he's advocating is the analogue of a driver saying "If you put tricycle wheels on a commercial car it'll tear itself to pieces, so instead I'm going to make every single car I ever drive from scratch using the stuff I found in my back yard."

Oh, and "My design decisions include a different braking system for each wheel and a different engine for each gear. Why? Because I can't reuse parts between projects (or even parts of the same project) as nothing is modular."

1

u/go-ahead-downvote Dec 19 '08

We all know there are some features of C++ that aren't well thought out. I've yet to meet two C++ programmers who agree on what the set of those features is. Trying to implement a project in a language where people can't even agree about templates, abstract classes, exceptions, or operator overload is difficult to say the least.