Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
frou_dh
12y ago
0 comments
Save
Share
C# had the exact same pitfall and it was recognised years ago. It's unfortunate that it made it in to Go.
0 comments
2 comments · 1 top-level
top
newest
oldest
shakesbeard
12y ago
· 1 in thread
Did they introduce a language solution for it in C#?
jared314
12y ago
C# 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
j
/
k
navigate · click thread line to collapse