Hacker News new | ask | show | jobs
by Cthulhu_ 642 days ago
It's possible to have multiple defers in a function though (so you have multiple "last work in a function"; nowhere is it dictated that a function should only have one operation that needs to clean something up at the end. Think for example copying one file to another.