News for hackers. Stuff that matters.
Re:Rust Weird Expressions by shakow on Friday May 14, 2021 @10:26PM (#27161748)
> It takes discipline to learn to write C++ in the modern way. It is work to keep up with improvements in the language and library, as new Standards are published. But many, many professionals do. C++ is not a toy. It has sharp edges that must be treated with respect. But if you do make the effort to keep up, and lean hard on the type system to help everywhere it can, the language delivers.

If it is such a core just to hope to, one day, be able to code that, maybe, won't crash, what do you think is the point of using C++ over Rust?

Re:Rust Weird Expressions by ncmncm on Friday May 14, 2021 @10:52PM (#27161879)
C++ doesn't need a point. C++ is a mature language with mature tooling, an installed base of tens or hundreds of billions of lines of code, millions of professionals worldwide getting critical work done every day, with guaranteed prospects decades into the future. You personally depend on C++ code not crashing hundreds or thousands of times every day, without knowing it.

In some possible futures, Rust code may take up just a bit of the load. The most value would come from its displacing C and Java in new projects.

Re:Rust Weird Expressions by kaslai on Saturday May 15, 2021 @01:43AM (#27162750)
I depend on a mountain of C and C++ code to not only not crash, but to also not have any subtle memory errors which might allow a packet from the internet to run arbitrary code on my machines. Failures of that sort are disturbingly common.
Re:Rust Weird Expressions by ncmncm on Saturday May 15, 2021 @02:09AM (#27162851)
You stand to gain more by people modernizing their existing code -- even, compiling their C code with a C++ compiler, and then improving that, as happened with excellent results in gcc and gdb -- than by hoping a vanishing few will switch over to a wholly new, unfamiliar language.

Liiterally millions of times more benefit.