3 ms·
C# had the exact same pitfall and it was recognised years ago. It's unfortunate that it made it in to Go.
by frou_dh 13y ago
C# had the exact same pitfall and it was recognised years ago. It's unfortunate that it made it in to Go.
- shakesbeard 13y agoDid they introduce a language solution for it in C#?
- deleted 13y ago[deleted]
- jared314 13y agoC# 5.0 is changing the behavior of the loop variable to be logically inside the loop [0]. [0] https://news.ycombinator.com/item?id=3477629 https://news.ycombinator.com/item?id=3477629