3 ms·
The 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
by flohofwoe 2y ago
The 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.