Comment by dilap

Comment by dilap a day ago

2 replies

(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.)

gf000 a day ago

And this issue was known from lisps for 50+ years.. if only we could somehow learn from other languages' mistakes.

  • dilap a day ago

    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.