What do you mean defer isn't scope based in Go?
(not super experienced Go developer)
(not super experienced Go developer)
Adding `func() {}()` scopes won't break existing code usually, though if you use 'break' or 'continue' you might have to make some changes to make it compile, like so:
https://go.dev/play/p/_Gq4QYtyMmp
see, no other issues, works exactly like you'd expect
[1] https://thephd.dev/c2y-the-defer-technical-specification-its...