3 ms·
Technically correct, but using the zero length array trick creates clearer, more self documenting code. It's a tradeoff between readability and portability.
by jandrese 11y ago
Technically correct, but using the zero length array trick creates clearer, more self documenting code. It's a tradeoff between readability and portability.
- _kst_ 11y ago> Technically correct, Or, as I prefer to say, "correct". > but using the zero length array trick creates clearer, more self documenting code. It's a tradeoff between readability and portability. Clearer compared to which alternative? I find C99-style flexible array members (defined with "[]") quite clear.