top | item 45293324

Object-Orients Programming in C

1 points| mrunix | 5 months ago |mrunix.me

4 comments

order

mwkaufma|5 months ago

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?

mrunix|5 months ago

I forgot about this one, nice catch

gangtao|5 months ago

so why not to use C++?

mrunix|5 months ago

These patterns exist in some codebases written in C, it's useful to understand these patterns.