Hacker News new | ask | show | jobs
by fc417fc802 405 days ago
What's cursed about this? I use this pattern all over in my code although the signature at the callsite looks a bit different (personal preference).

D (for example) has the concept of statements that trigger at end of scope built into the language.