4 ms·
C99 object literals are also fantastic. I feel very constrained when I have to use strict C89. Meanwhile, in terms of C11 [update: actually also from C99] I ac
by bangonkeyboard 9y ago
C99 object literals are also fantastic. I feel very constrained when I have to use strict C89.
Meanwhile, in terms of C11 [update: actually also from C99] I actually wrote a function with a signature like
void func(int arg[static 3]);
but later removed it because (a) the generated code was the same, and (b) rather than increasing clarity and self-documentation, it caused confusion; even when you're familiar with the feature, it never stops looking like a syntax error.
- loeg 9y agoI do love object literals. The 'static' keyword for array parameters actually dates to the C99 standard.
- bangonkeyboard 9y agoYou're 100% correct, my mistake.