3 ms·
My favorite "extremely compact C" style: if (*len * ("11124811248484"[*type < 14 ? *type:0]-'0') > 4) { ... } because naming lookup tables is clearly too v
by quantumet 6y ago
My favorite "extremely compact C" style:
if (*len * ("11124811248484"[*type < 14 ? *type:0]-'0') > 4) { ... }
because naming lookup tables is clearly too verbose. Among other interesting decisions.
- userbinator 6y agoI pretty much understood that line right away... it's not that different from the code I'm used to reading and writing (embedded, low-level stuff), which just shows that even within C alone there can be a huge range of style from APL-terse to mind-numbingly-Enterprise-Java verbose.