7 ms·
I like how Swift did it: instead of try/finally, they have `defer`, which (when encountered) pushes a new clean-up task to the guaranteed-execution list in the
by DaiPlusPlus 3y ago
I like how Swift did it: instead of try/finally, they have `defer`, which (when encountered) pushes a new clean-up task to the guaranteed-execution list in the right order: https://www.hackingwithswift.com/new-syntax-swift-2-defer https://www.hackingwithswift.com/new-syntax-swift-2-defer
- shiroiuma 3y agoThat does sound good. It looks like golang has the same type of construct.