Hacker News new | ask | show | jobs
by quantumet 2073 days 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.
1 comments

I 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.