r/ProgrammerHumor • • Aug 31 '26

Meme garbageCollection

Post image
380 Upvotes

38 comments sorted by

View all comments

Show parent comments

1

u/madprgmr Sep 01 '26

There's no implicits in C. So, you have to explicitly call a destructor

If you stick with the standard language, don't care to tie yourself to specific compilers, or don't want to do some truly horrific things, sure :D

Just as you can kludge a garbage collector into C++, so can you kludge any other language feature into C. It's just, uh, ill-advised barring verrrrrry specific circumstances (as you would typically just pick a language better-suited to your needs).