4 ms·
> “A lot of people look at C++ and want to understand every dark corner. This is what you do if you want to be a compiler writer, but most people should look at
by rplacd 14y ago
> “A lot of people look at C++ and want to understand every dark corner. This is what you do if you want to be a compiler writer, but most people should look at what is the easiest way to write a good solution for their problem," said Stroustrup.
Ha! So even Soustrup agrees C++ is inevitably subsetted by its users.
> “I try to focus on things that lead to correct programs fairly easily. I emphasise the use of constructors to establish invariance, to acquire resources, destructors for cleaning up, copy operations, and the new [C++ 11] move semantics that allow you to move an object out of one scope and into another one very cheaply," he added.
Keeping the rest of the quote here - now I'm looking for a more abstract and more inclusive notion about what constructors and destructors do.