Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


Your 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.


TBH, all the gazillion ways that C++ has invented over time for initialising data are a poor substitute for simple C99 designated init.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: