Re:C: Simple Defer, Ready to Use
by Analemma_ on Monday January 06, 2025 @03:28PM
(#42615323)
I don't mind destructors but I don't understand your insistence that they're significantly better than defer for visibility: they're invisible and invoke a distant jump to some bit of code which might not even be in your codebase; defer is "right there" (and with proper editor support could even be made to look like it happens at the end of the function instead of where it's declared). I think they're both fine for their respective languages.
[ Parent
| on HN ]
There are no comments on this comment yet.