3 ms·
maxlen is meant to be a constant provided by a #define, so I wouldn't be worried about things going haywire if maxlen is a weird value. But C-like code in gene
by jcranmer 3y ago
maxlen is meant to be a constant provided by a #define, so I wouldn't be worried about things going haywire if maxlen is a weird value.
But C-like code in general makes me nervous in parsers, since there's many ways things can go wrong and C is inherently fail-deadly if you make a mistake.
- jstimpfle 3y agoCoding in C doesn't mean that you shouldn't create a layering of appropriate abstractions.
- SubjectToChange 3y agoThe problem is that writing abstractions in C is more difficult than virtually any other practical language.
- jstimpfle 3y agoThat's a wild claim. Why do you think is that? What is an abstraction and what do you need to code it?