10 ms·
> Eh, loop variable scoping has bitten me a single digit number of times in the eleven years I’ve been using it. Go ahead and ask them to remove this from the
by sapling-ginger 3y ago
> Eh, loop variable scoping has bitten me a single digit number of times in the eleven years I’ve been using it.
Go ahead and ask them to remove this from the Frequently Asked Question section then.
https://go.dev/doc/faq#closures_and_goroutines https://go.dev/doc/faq#closures_and_goroutines
- throwaway894345 3y agoIts presence in the FAQ indicates that a lot of people have run into it, not that people commonly repeat the mistake. What exactly do you think we're debating here?