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
Set*, FromRaw, AsString and Type on pcommon.Value all mention that "Calling this function on zero-initialized Value will cause a panic" — Why is that? Wouldn't it be easier and safe to check for the nil case right at the start of these functions and avoid panics?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Set*
,FromRaw
,AsString
andType
onpcommon.Value
all mention that "Calling this function on zero-initialized Value will cause a panic" — Why is that? Wouldn't it be easier and safe to check for the nil case right at the start of these functions and avoid panics?Beta Was this translation helpful? Give feedback.
All reactions