Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
asddubs
on Oct 11, 2022
|
parent
|
context
|
favorite
| on:
Go: Redefining For Loop Variable Semantics
seems like the non magic solution here would be block scope. I guess it would still be slightly magic in that each iteration gets its own scope, but at least that's easier to wrap your head around than just a special case
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: