What good things added in C2X ? Did they add OOP? Because there were such plans, and as for me, this is crap..
It's still a work in progress, so no complete list yet. Here are a few things:
- attributes as in C++: at leasty [[nodiscard]], [[maybe_unused]], [[deprecated]] and [[fallthrough]], maybe a few more. Also support for [[vendor::attribute]] for "private" extensions.
- memccpy(), strdup(), strndup() functions.
- u8 character prefix.
In other words: meh.
There is one proposal for an optional type of an enumeration (not just int), which sounds mildly useful. We'll see if it makes it into the standard.
I think a suggestion about OOP comes up up each time there is talk about a new C standard, with roughly 0% chance of succeeding (basically: use C++).