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
Remove the intentional panic that was previously encountered when EncodeValue was passed nil values.
Previously, we panicked so as to maintain logical cohesion, like one would encounter when dereferencing a nil pointer in Go code. However, that makes for a not-great developer experience, thus this change instead returns an error that users can inspect.
This is based on #31664, and requested to be revised into a proposal in CL 554415.
The text was updated successfully, but these errors were encountered:
Proposal Details
Remove the intentional panic that was previously encountered when EncodeValue was passed nil values.
Previously, we panicked so as to maintain logical cohesion, like one would encounter when dereferencing a nil pointer in Go code. However, that makes for a not-great developer experience, thus this change instead returns an error that users can inspect.
This is based on #31664, and requested to be revised into a proposal in CL 554415.
The text was updated successfully, but these errors were encountered: