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
When reading from a closed channel or looking up a non-present key in a map, the zero value for the expected type is returned instead. Reference types aren't supposed to have a zero value, but right now it's i.
Related #1, maybe this should be fixed in a similar way by forbidding ref types in dangerous cases, maybe this should just be ignored, as it would conflict with the v, ok := idiom.
The text was updated successfully, but these errors were encountered:
When reading from a closed channel or looking up a non-present key in a map, the zero value for the expected type is returned instead. Reference types aren't supposed to have a zero value, but right now it's i.
Related #1, maybe this should be fixed in a similar way by forbidding ref types in dangerous cases, maybe this should just be ignored, as it would conflict with the
v, ok :=
idiom.The text was updated successfully, but these errors were encountered: