Skip to content

Comment on A subtle bug with Go's errgroupparent

Comments

Your are right about shadowing: I just checked and the go specification calls it “redeclaration” and it works as you described:

Redeclaration does not introduce a new variable; it just assigns a new value to the original

I added a mention about that in the article. Thank you.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.