Intuition for +++
#251
Closed
tusharmath
started this conversation in
Ideas
Replies: 1 comment
-
|
The operator defaultWith should do the job, +> would be a good choice, but there is a chance that without proper documentation the proposed operator can be mistaken with zipRight Operator from ZIO. try considering ~> operator which will be more meaningful in my opinion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Combining two http apps can be done as follows —
The way
defaultWithworks is that when the response ofh1isEmptythats whenh2is executed. Similarly ifh2resolves to anEmpty, only thenh3is going to be executed.The named operator
defaultWithmakes a lot of sense for this kind of operation, but the symbol equivalent+++doesn't put across a similar intuition. The proposed operator for this use case IMO should be+>. Thoughts anyone?Beta Was this translation helpful? Give feedback.
All reactions