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

> C99 designated initializers, but C++ finally supports them in C++20

Unfortunately C++20 designated init has been butchered so much compared to the C99 that it is pretty much useless in practice except for the most trivial structs (for instance designators must appear in order of declaration, array item init is completely missing, designator chaining doesn't work ... and those are only the most important things).



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

Search: