You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any down side to having a map automatically “made” (makemap) when it is nil? This would mirror the behaviour of slices too: appending to a nil slice creates it.
The text was updated successfully, but these errors were encountered:
I have a feeling this might have been discussed before, but I couldn’t find an issue. If it exists, please close this one.
Is there any benefit in having mapaccess panic on nil maps?
https://github.com/golang/go/blob/master/src/runtime/map.go#L57
Is there any down side to having a map automatically “made” (makemap) when it is nil? This would mirror the behaviour of slices too: appending to a nil slice creates it.
The text was updated successfully, but these errors were encountered: