Re:The Go Beartrap Lying in the Shadows
by xkarga00 on Tuesday October 28, 2014 @07:11PM
(#8524279)
Actually the problem here has to do with the scope where the declaration happens. If redeclaration happened as mentioned in your quoted text ie. assignment of a new value, there would be no problem. As is [in a different scope], a redeclaration of err is actually a declaration of a shadowed err variable.
[ Parent
| on HN ]
There are no comments on this comment yet.