3 ms·
> Also: does auto-boxing even make sense in Go? Yes, and already happens: interfaces cause wrapping of their content[0] and go does basic escape analysis and a
by masklinn 12y ago
> Also: does auto-boxing even make sense in Go?
Yes, and already happens: interfaces cause wrapping of their content[0] and go does basic escape analysis and automatically allocates things which escape a function on the heap rather than the stack[1]
[0] https://golang.org/doc/faq#nil_error https://golang.org/doc/faq#nil_error
[1] https://golang.org/doc/faq#stack_or_heap https://golang.org/doc/faq#stack_or_heap