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
The order of evaluation of predicate and lambda (first lambda, then predicate) in recoverWhen has tricked me several times. While this can make sense (e.g. to check that applying some algorithm on a given value returns the expected result before continuing), I feel like we could also profit from a function that first runs the predicate (on this.value or this.error, see #6) and only then run the lambda function.
The text was updated successfully, but these errors were encountered:
Me personally, I know of just a single occurrence that would be easily fixed. And I just grepped through THE project and there's not a single occurrence of recoverWhen. So the answer is probably no.
The order of evaluation of predicate and lambda (first lambda, then predicate) in
recoverWhen
has tricked me several times. While this can make sense (e.g. to check that applying some algorithm on a given value returns the expected result before continuing), I feel like we could also profit from a function that first runs the predicate (on this.value or this.error, see #6) and only then run the lambda function.The text was updated successfully, but these errors were encountered: