Hacker News new | ask | show | jobs
by lionkor 757 days ago
They assume C++-like destructors. Other languages, like Zig, do a good job with syntax like `defer`
2 comments

They don’t “assume” C++-like destructor, they’re the primary author of the N3199 “defer” proposal for C.

This is a response to people contacting / criticising them asking for destructors instead of defer.

The entire point of the blog post (written by the author of the C defer proposal) is to motivate why C should have defer. It is an attempt to summarize one of the most common criticisms of the proposal.