2 ms·
>It's unfair to complain that a book that describes the C standard only describes what's in the standard. It describes more than what's in the standard (namely
by gte910h 16y ago
>It's unfair to complain that a book that describes the C standard only describes what's in the standard.
It describes more than what's in the standard (namely, non-standard functions you could use to implement the standard). Other books describe the problem, and what you should do instead today (the entire point of this discussion is finding better substitutes to this very old book). My frustration comes from people hired to do C who think that book is cannon, when it's really more like "what was current in the early 90s".
I do get why you were originally reacting though. If I thought someone was just objecting to the brace style of the code I'd find that questionable as well.
Another thing which makes me really question the value of a C90 only book is that when confronted with things C90 doesn't do well (say, fixed sized types), you'll reach for C90 based solutions of the 90's to solve that problems (say, company defined type sizes and variable naming standards based on size), rather than the C99 solutions to those same problems, aka, the standards based solution to the problems.
I'd still think about getting K&R for perhaps the 4th book on C for a person (after something like Advanced Programming in the Unix Environment or _insert C language on platform of their choice_). Just not #1 anymore, and probably not #2.