News for hackers. Stuff that matters.
Re:C++20 has been approved by Const-me on Sunday September 06, 2020 @02:24PM (#24393471)
> learning and using all of C++ is beyond impractical

I agree in general, but still, some of the newly introduced features are actually awesome. Here’s ones I’m using almost every day.

C++/11: initializer lists, range-based for loops, strongly-typed scoped enums, raw and UTF8 string literals, thread_local, thread synchronization classes including atomics, alignas

C++/14: binary literals

C++/17: if constexpr, std::string_view, better static_assert

And in C++/20, pretty sure I gonna use std::span and std::bit_cast.

In C++ we don’t pay for features we don’t use. I’m totally fine with other people getting the features they want (despite finding them unreadable and overcomplicated), I simply don’t use the stuff I don’t like.

There are no comments on this comment yet.