4 ms·
WG14 has only "worked" fairly well insofar as it did absolutely nothing but file the serial numbers off of things standardized in C++ and release them. The bigg
by murderfs 2y ago
WG14 has only "worked" fairly well insofar as it did absolutely nothing but file the serial numbers off of things standardized in C++ and release them. The biggest C-original features (type generic macros, annex K) are all gigantic boondoggles. Even many of the features that were lifted from C++ were poorly thought out (e.g. compatibility between <stdatomic.h> and <atomic>).
- flohofwoe 2y agoThe biggest C-original feature since C89 is easily designated-initialization in C99, and WG21 couldn't even get that simple thing right when they tried to copy it into C++20 two decades later (even though Clang had a working implementation in C++ mode since forever which just had to be copied by the standard).
- shrimp_emoji 2y agoYour struct should just have a constructor. :) Hey, pass me more OOKoolaid. No, it's fine; all the bottles say "Expires 2005", but it's still good.
- flohofwoe 2y agoTBH, all the gazillion ways that C++ has invented over time for initialising data are a poor substitute for simple C99 designated init.