logoalt Hacker News

aw1621107yesterday at 4:10 PM0 repliesview on HN

> AFAICT, you cannot turn a block scoped defer into the function one.

You kinda-sorta can by creating an array/vector/slice/etc. of thunks (?) in the outer scope and then `defer`ing iterating through/invoking those.