Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tsimionescu
on Aug 13, 2024
|
parent
|
context
|
favorite
| on:
Go structs are copied on assignment (and other thi...
I would guess that the main reason is that the on-stack way only works for local variables. If you want to pass anything else by reference, you need to use some kind of address to it, since it's not in the caller's stack anyway.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: