4 ms·
I was curious if a simple fix for the bug would be wrapping a `defer` statement around the anonymous function. It seems only arguments are evaluated when deferi
by jamesmiller5 13y ago
I was curious if a simple fix for the bug would be wrapping a `defer` statement around the anonymous function. It seems only arguments are evaluated when defering, not blocks like I had assumed.
http://play.golang.org/p/Ah9SQrSKw4 http://play.golang.org/p/Ah9SQrSKw4