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
Given the forward pipe operator proposed in #5445, it has been suggested by @HaloFour to extend it with a variant that function like the null-propagation operator, as an alternative to #5961,
The value forwarded to the target function F is of a non-nullable type (#5032).
Just like ?. operator, you don't need to use ?> if the target function doesn't return a nullable value, so for chaining you should use the regular |> operator to not perform an additional null-checking, e.g.
Given the forward pipe operator proposed in #5445, it has been suggested by @HaloFour to extend it with a variant that function like the null-propagation operator, as an alternative to #5961,
The value forwarded to the target function
F
is of a non-nullable type (#5032).Just like
?.
operator, you don't need to use?>
if the target function doesn't return a nullable value, so for chaining you should use the regular|>
operator to not perform an additional null-checking, e.g.In this example
F
takes a non-nullable and returns a non-nullable but theresult
will be a nullable if you don't use the??
operator at the end.The text was updated successfully, but these errors were encountered: