News for hackers. Stuff that matters.
Re:Carbon Language: An experimental successor to C++ by tempest_ on Tuesday July 19, 2022 @03:39PM (#32156876)
It really depends on what bit of computer science you are learning.

C++ is definitely past its prime and has been surpassed in many areas by other languages but there are still a bunch of domains where it is the primary language.

Re:Carbon Language: An experimental successor to C++ by mbrodersen on Tuesday July 19, 2022 @10:13PM (#32160544)
How about almost all domains? Everything in the world runs on top of browsers/operating systems/drivers/VMs/networks/embedded systems etc. that are written in C/C++. Not to mention that the tools used to design chips and manufacture them are also written in C/C++. No other language comes even close.
Re:Carbon Language: An experimental successor to C++ by moltonel3x on Thursday July 21, 2022 @07:39AM (#32178168)
Having C or C++ somewhere in the lower levels of your stack doesn't make them the primary language for your domain. Other wise CPU microcode would be the primary language of every domain.
Re:Carbon Language: An experimental successor to C++ by ncmncm on Thursday July 21, 2022 @06:54AM (#32177834)
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.

Re:Carbon Language: An experimental successor to C++ by jstimpfle on Thursday July 21, 2022 @12:37PM (#32181486)
Example of some well-written code that expresses things that can only be expressed in C++?
Re:Carbon Language: An experimental successor to C++ by sk0g on Saturday July 23, 2022 @11:06PM (#32209938)
I'm far from the most experienced in C++, but friend classes/functions do not seem to have a direct equivalent in any other language.
Re:Carbon Language: An experimental successor to C++ by int_19h on Monday July 25, 2022 @02:35PM (#32228903)
In 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.

Re:Carbon Language: An experimental successor to C++ by ncmncm on Thursday July 28, 2022 @12:24AM (#32260471)
NB: Friend-this and -that are not among powerful features of C++.
Re:Carbon Language: An experimental successor to C++ by socialdemocrat on Tuesday July 26, 2022 @10:48AM (#32239066)
Because you don’t need them in other languages.