Hacker News new | ask | show | jobs
by oguz-ismail2 141 days ago
I can't think of a language that isn't simpler compared to C++
1 comments

Might be, then again C23 isn't K&R C that many still learn from.
> 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.