Comment by bsder
> What we want everywhere is block-scoped defer, right?
Not always. Block-scoped defer makes allocating inside "if blocks" a pain.
The flip side is that function-scoped is a pain to implement in a non-GC language.
> What we want everywhere is block-scoped defer, right?
Not always. Block-scoped defer makes allocating inside "if blocks" a pain.
The flip side is that function-scoped is a pain to implement in a non-GC language.