3 ms·
It’s true that the variant of the issue involving explicit references seems pretty unique to Go. But there are plenty of languages that have the variant of th
by comex 3y ago
It’s true that the variant of the issue involving explicit references seems pretty unique to Go. But there are plenty of languages that have the variant of the issue where a closure implicitly captures a local variable by reference. JavaScript used to have it until `let` was created (and still does have it if you don’t use `let`). And I ran into it recently in some closure-heavy Python code I wrote recently. (Python makes it relatively ugly to work around, too.)