Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
skywhopper
on Oct 11, 2022
|
parent
|
context
|
favorite
| on:
Go: Redefining For Loop Variable Semantics
You aren’t missing anything. How expensive the copy is depends on the type of item. This is why you should probably use pointers in slices you’re going to loop over instead of the object itself.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: