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
we receive a Multiple-value lo.TryOr(...) (string, bool) in single-value context error.
How to get rid of the (in most of my use cases unneeded) boolean?
I'd like to not implement additional functions, if possible, but definitely not much longer code (i.e. putting it in an extra line to value, _ = it. My example could survive that readability wise, my real code sadly not.
I would expect something like Must, but for the bool instead of an error, and ofc without panics.
The text was updated successfully, but these errors were encountered:
Hi!
Suppose the following:
we receive a
Multiple-value lo.TryOr(...) (string, bool) in single-value context
error.How to get rid of the (in most of my use cases unneeded) boolean?
I'd like to not implement additional functions, if possible, but definitely not much longer code (i.e. putting it in an extra line to
value, _ =
it. My example could survive that readability wise, my real code sadly not.I would expect something like
Must
, but for the bool instead of an error, and ofc without panics.The text was updated successfully, but these errors were encountered: