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
This creates some awkwardness. First of all, it just feels weird to have the result wrapped in a Snapshot type.
As it's implemented now, the caller cannot assume that the first value returned is non-nil even if the error is nil. This will require the API user to write code like
While evaluating the v2 API I was wondering why many functions have a signature like
This creates some awkwardness. First of all, it just feels weird to have the result wrapped in a Snapshot type.
As it's implemented now, the caller cannot assume that the first value returned is non-nil even if the error is nil. This will require the API user to write code like
If the functions had a signature like:
It could be used more idiomatic like this:
Issue type
The text was updated successfully, but these errors were encountered: