Retracted #1606
Replies: 2 comments 1 reply
-
This kind of rhetorical question shuts down constructive discussion. Please take a look at our code of conduct, particularly "Be friendly and patient" and "When we disagree, try to understand why". |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity, which languages are you thinking of? Simula, that C++ builds on, had single inheritance. Beta, the Simula successor, also had single inheritance. Beta built on a experiences from a modelling language Delta (IIRC). I attended a lecture where Kristen Nygaard layed out the reasoning behind Beta and why they preferred single inheritance, and their reasoning made sense, so I don't think one can jump to any quick conclusions about having a preference for single inheritance. Usage of multiple inheritance is often a sign of poor modelling. That said, Beta also had type variables and virtual types, so you could not only extend the super class, but also extend types within the super class (virtually). Beta also unified classes and functions into one concept, reminiscent of how C++ lambdas are classes. I think Bjarne Stroustrup once said that there was a nice little language hidden within C++, maybe this aspect of Beta was what he was thinking of? |
Beta Was this translation helpful? Give feedback.
-
Retracted.
Beta Was this translation helpful? Give feedback.
All reactions