Comment by quietbritishjim
8 hours ago
OK so what's your alternative then? It's easy to say you don't like something but the onus is on to show there's something actually better.
The library used in the author's post seems perfectly readable to me, enough that it didn't even register until I read your comment. Could it be tweaked slightly to not use C syntax? Sure, but it's still going to need roughly the same pattern of identifier + type (including size). Types in C are straightforward so long as you don't have functions/pointers (which have the "inside out" problem, but they're not needed for binary encodings), so you're going to be looking at pretty trivial changes to syntax. Certainly not enough to warrant this level of quibbling.
No comments yet
Contribute on Hacker News ↗