Re:Go 1.18
by foldr on Tuesday March 15, 2022 @05:34PM
(#30692085)
>and makes you memorize when to use stack vs heap
You don't have to think about stack vs. heap allocation in Go unless you're writing performance sensitive code. You could pretend that Go heap allocates everything and still read and write Go code without any problems.
You don't have to think about stack vs. heap allocation in Go unless you're writing performance sensitive code. You could pretend that Go heap allocates everything and still read and write Go code without any problems.