On Fri, Mar 12, 2021 at 1:24 AM Kevin Chadwick <m8il1i...@gmail.com> wrote:
> Why doesn't go auto init or make an empty map for a named return to avoid the > potential chance of a panic due to operating on a nil return? A non-zero value map value must be allocated. All well-known Go compilers allocate maps in heap. Allocating automagically a map that may end up never used is a waste of resources. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-UuFkAK0PUVZyc2jj4vUWNecA0sjCCHj-nK4Y_KT8YnBw%40mail.gmail.com.