Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: runtime: mapaccess shouldn’t panic on nil map #29631
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?
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.