Re:Object-Oriented Programming in C (2019) [pdf]
by quelsolaar on Sunday September 05, 2021 @04:24AM
(#28422482)
This to me says that C is the more powerful language. C can do what higher level languages can, in not many more lines, but higher level languages cant do the low level things C can do.
[ Parent
| on HN ]
Re:Object-Oriented Programming in C (2019) [pdf]
by mrathi12 on Sunday September 05, 2021 @04:49AM
(#28422587)
This is such a common fallacy. C exposes lower-level memory management, but to then say "oh now you have pointers you can implement anything" is a push.
If you need to implement virtual tables and function pointers, you'd use C++ - there's no need to reinvent the wheel.
Besides software engineering is about focusing on the intrinsic complexity, and using languages and tools to mitigate the incidental complexity.
Re:Object-Oriented Programming in C (2019) [pdf]
by WalterBright on Sunday September 05, 2021 @05:36AM
(#28422791)
I've done OOP in C, and so have others.
It's just not worth it. Too much casting, too much scaffolding, much too brittle and error-prone. The experience is like "how much suffering can one endure."