pistolero :thispersondoesnotexist: (p@freespeechextremist.com)'s status on Wednesday, 04-Oct-2023 19:32:15 JST
-
@tiskaan @animeirl @nishi
> isnt k&r outdated as fuck?
But for some reason you don't think SICP is.
Anyway, the language hasn't really changed. A little extension for the sake of convenience, but C is C. Even code from v7 (which predates ANSI-C, which is what the second edition of K&R uses) still compiles and runs for the most part, so the book is current. Even the stdlib functions described are the same. The stuff that's changed fits on half a page: you wanna use strncmp() instead of strcmp(), the "register" and "inline" keywords are sometimes ignored in $current_year compilers, etc.
> its the only reason im not reading as its only talking about language c whereas sicp is about timeless concepts.
No, there's a reason people still read both K&R and SICP. K&R does describe the language, but the examples are all great stuff, and it's heavy on code. qsort() and binary search and parsing and how memory allocation works.