Y
Hacker News
new
|
ask
|
show
|
jobs
by
DanielHB
15 days ago
isn't it the exact same as C in this regard? The pointer being on the stack or not depends how it was originally allocated.
1 comments
nixon_why69
15 days ago
In C you explicitly malloc things onto the heap. In go, taking the address of something maybe allocates on the heap, or maybe not if escape analysis can keep it on the stack.
link