Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
singular
on June 23, 2013
|
parent
|
context
|
favorite
| on:
Go's range clause
After I wrote my reply I played around with some C# and found to my surprise that foreach
does
in fact provide a new variable to be captured on each iteration, so clearly this is a design decision that varies between languages.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: