Re:Some C habits I employ for the modern day
by oguz-ismail2 on Saturday January 24, 2026 @02:36AM
(#46741772)
I can't think of a language that isn't simpler compared to C++
[ Parent
| on HN ]
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.