3 ms·
I finally figured how Dr. Stroustrup can always make C++ seem like not only a reasonable thing, but probably the best possible one. He has chosen a number of go
by mannykannot 10y ago
I finally figured how Dr. Stroustrup can always make C++ seem like not only a reasonable thing, but probably the best possible one. He has chosen a number of goals that, while being reasonable and desirable individually, each tend to complicate the realization of all the others. Consequently, for any of the complications of the language, he can pick a couple of goals and show that they make the complication unavoidable.
- jnordwick 10y agoWe will now call this "Stroustrupping": choosing a large number of incompatible goals and using a subset to defend any argument while ignoring the fact this subset conflicts with many of the other goals, such as the subset used to defend the previous argument.
- mannykannot 10y agoTo be clear, I am not suggesting that Stroustrup is being misleading in any way. I think the complexity is inevitable, given the goals, and I came to this view from asking whether there is one thing about C++ that leads to this complexity. Perhaps the closest thing to a single cause was the decision to make C++ a superset of C, which in turn leads to the use of naked pointers, arrays that do not know their dimensions, and to accessing arrays through pointers. Another issue may be separate compilation, which seems to complicate templates and polymorphism.