3 ms·
I think something along those lines (rarely used...) was also given by the C++ Committee as justification why so much of the C99 designated init feature set was
by flohofwoe 4y ago
I think something along those lines (rarely used...) was also given by the C++ Committee as justification why so much of the C99 designated init feature set was left out of C++20, which is a bit of a shame. All C99 designated-init 'sub-features' complement each other nicely once you start using them. It's a great way for building 'data-centric' APIs.
For instance check out this call to create a 3D-API pipeline-state-object in C99:
https://github.com/floooh/sokol-samples/blob/ad9047e228a84413d379e858eed49e5e702a0892/sapp/cube-sapp.c#L80-L98 https://github.com/floooh/sokol-samples/blob/ad9047e228a8441...