Hacker News new | ask | show | jobs
Object-Orients Programming in C (mrunix.me)
1 points by mrunix 269 days ago
2 comments

Weird choice to lead with asymmetric constructors/destructors -- why is there a free() with no corresponding malloc()/calloc()? Were the samples copy-pasted from a GenAI prompt?
I forgot about this one, nice catch
so why not to use C++?
These patterns exist in some codebases written in C, it's useful to understand these patterns.