Hacker News new | ask | show | jobs
by RhysU 3013 days ago
I have often wanted c99 with destructors for RAII purposes.
1 comments

you do not need destructors if you put your stuff on the stack
just putting stuff on the stack in C won't magically call `fclose` or `pthread_mutex_unlock`, unlike destructors