You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On several occasions I found myself in the need of C99-style designated initializer to initialize a static sparse array, like so:
inta[128] = { [0] =1, [64] =2 };
It is just too error-prone, tedious and unsightly to type all remaining zeros. Note C99 designated initializer can also be applied to aggregate types but I doubt it would be as useful in rust.