3 ms·
The "C family" has two committees, one that works fairly well (https://www.open-std.org/jtc1/sc22/wg14/ https://www.open-std.org/jtc1/sc22/wg14/) and one that d
by flohofwoe 2y ago
The "C family" has two committees, one that works fairly well (https://www.open-std.org/jtc1/sc22/wg14/ https://www.open-std.org/jtc1/sc22/wg14/) and one that doesn't (https://www.open-std.org/jtc1/sc22/wg21/ https://www.open-std.org/jtc1/sc22/wg21/).
- murderfs 2y agoWG14 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.