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
Every individual type can be compared to its zero value (func() == nil, for example), but there is no way to write this code today without using package reflect:
Every individual type can be compared to its zero value (func() == nil, for example), but there is no way to write this code today without using package reflect:
It must instead be:
I propose adding a built in constant
zero
that can be tested for equality with any type.It could also be returned, as in
The text was updated successfully, but these errors were encountered: