News for hackers. Stuff that matters.
Re:Some C habits I employ for the modern day by pjmlp on Saturday January 24, 2026 @02:56AM (#46741852)
Might be, then again C23 isn't K&R C that many still learn from.
Re:Some C habits I employ for the modern day by lelanthran on Saturday January 24, 2026 @03:42AM (#46742030)
> Might be, then again C23 isn't K&R C that many still learn from.

I agree with this, but then again, not many people are learning C now anyway. It will die away from natural attrition anyway, is my point.

The K&R C does have a few advantages, because the compilers at the time were not so aggressive in optimisation, and will consistently emit code that (for example) performed a NULL dereference (or other UB), ensuring things like consistently crashing instead of silently losing data/doing the wrong thing.