4 ms·
In fact there is plenty that can be expressed only in C++. A person making effective use of the power of the language finds anything else a huge step down. Any
by ncmncm 4y ago
In fact there is plenty that can be expressed only in C++. A person making effective use of the power of the language finds anything else a huge step down.
Anyone not having fun when coding C++ is doing it wrong.
- jstimpfle 4y agoExample of some well-written code that expresses things that can only be expressed in C++?
- sk0g 4y agoI'm far from the most experienced in C++, but friend classes/functions do not seem to have a direct equivalent in any other language.
- socialdemocrat 4y agoBecause you don’t need them in other languages.
- ncmncm 4y agoNB: Friend-this and -that are not among powerful features of C++.
- int_19h 4y agoIn C#, nested classes are effectively friends with their outer class, and it's used quite often in practice. On the other end of expressivity, in Eiffel, every class member is declared as visible to specific other classes; if you want something to be public, you say that it's visible to ANY, which is the universal base class similar to e.g. Object in Java.
- deleted 4y ago[deleted]