News for hackers. Stuff that matters.
Re:I ruined my vacation by reverse engineering WSC by aa-jv on Monday May 12, 2025 @07:17AM (#43961773)
This is a class which implements a 'defer' mechanism, similar to Go and Javascript constructs, which do the same thing - delay execution of the given block until the current block scope is exited. Its pretty clever, actually, and quite useful.

I personally don't find it that cursed, but for many old C++ heads this may be an overwhelming smell - adding a class to implement what should be a language feature may tweak some folks' ideology a bit too far.

There are no comments on this comment yet.