4 ms·
> Go makes the stack/heap decision at compile time as well. No, it doesn't! This is even in the FAQ: https://golang.org/doc/faq#stack_or_heap https://golang.or
by pcwalton 10y ago
> Go makes the stack/heap decision at compile time as well.
No, it doesn't! This is even in the FAQ: https://golang.org/doc/faq#stack_or_heap https://golang.org/doc/faq#stack_or_heap
- endorphone 10y agoHow do you think that refutes what I said? Go absolutely makes that decision at compile time (of course it does -- Go does not have a VM). Is your point that they say that you shouldn't sweat it? Because of course you shouldn't, and ideally it is making the right choice, which most of the time is the stack.