Re:More Gotchas of Defer in Go, Part II
by tylersmith on Thursday December 21, 2017 @02:42PM
(#15982120)
I personally prefer the version presented in the article, but your version has at least one nice feature in that you can cleanly specify at the top of the loop body which variables are being shadowed.
[ Parent
| on HN ]
There are no comments on this comment yet.