News for hackers. Stuff that matters.
Re:All C++20 core language features with examples by rsp1984 on Wednesday April 07, 2021 @03:18PM (#26729694)
Best answer, much appreciated.

> Give it five or ten years, and I reckon you'll see people make use of C++17 and C++20 in much greater numbers.

Frankly, the thought of it makes me want to migrate to Rust.

> Are you aware that std::thread has existed since C++11, and std::jthread and coroutines are in C++20?

Sure, but very low level. I'd be great to have a standard for something like TBB or OpenMP.

> std::string is an RAII-managed bag of bytes. What kind of operations are you looking for?

Looking enviously at Javascript strings and boost string algorithms...

Re:All C++20 core language features with examples by kllrnohj on Wednesday April 07, 2021 @03:28PM (#26729842)
> Sure, but very low level. I'd be great to have a standard for something like TBB or OpenMP.

The answer here is modules. Improve the story on shipping C++ libraries, and then who cares if it's in the "standard library" or not? It's not like anyone in JS land for example cares if something is native to the language or in a library since adding a library is trivial & easy.

Re:All C++20 core language features with examples by yuushi on Wednesday April 07, 2021 @09:53PM (#26734162)
Modules have nothing to do with shipping libraries (or dependency management), they are purely about encapsulation of interface and (API) implementation.
Re:All C++20 core language features with examples by BenFrantzDale on Wednesday April 07, 2021 @09:17PM (#26733917)
It should be std::string’s job to store strings. If people want to perform operations on them, that’s what free functions are for, right? Nobody wants std::string to have hundreds of methods.

Tbb is great.