zlacker

[parent] [thread] 2 comments
1. dilap+(OP)[view] [source] 2025-08-22 16:36:20
(Side note, Go did fix scoping of captured variables in for,range loops, which was a back-incompat change, but they justified it by emperically showing it fixed more bugs than it caused (very reasonable). C# made the same change w/ the same justification earlier, which was inspiration for Go.)
replies(1): >>gf000+Vd
2. gf000+Vd[view] [source] 2025-08-22 17:48:21
>>dilap+(OP)
And this issue was known from lisps for 50+ years.. if only we could somehow learn from other languages' mistakes.
replies(1): >>dilap+J31
◧◩
3. dilap+J31[view] [source] [discussion] 2025-08-22 22:28:48
>>gf000+Vd
Yeah, it blew my mind when I first learned Go had this problem -- like, people have already tripped over this many times! I was pleasantly surprised to see them fix it though.
[go to top]