3 ms·
They assume C++-like destructors. Other languages, like Zig, do a good job with syntax like `defer`
by lionkor 2y ago
They assume C++-like destructors. Other languages, like Zig, do a good job with syntax like `defer`
- masklinn 2y agoThey 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.
- jcranmer 2y agoThe 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.