Y
Hacker News
new
|
ask
|
show
|
jobs
by
xdennis
294 days ago
It wouldn't be a problem is Python had block level variable scope. Having that destructuring be limited to the 'case' would be fine, but obliterating the variable outside of the match is very unexpected.