3 ms·
> Last time I looked this was (golang-like) function scoped, not { } scoped, which means it's a bad idea. Might have been the previous attempt from years ago,
by masklinn 2y ago
> Last time I looked this was (golang-like) function scoped, not { } scoped, which means it's a bad idea.
Might have been the previous attempt from years ago, because being block scoped (unlike go) literally has its own section in https://thephd.dev/c2y-the-defer-technical-specification-its-time-go-go-go#scope-based https://thephd.dev/c2y-the-defer-technical-specification-its...