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
-
Combining two http apps can be done as follows —
The way
defaultWith
works is that when the response ofh1
isEmpty
thats whenh2
is executed. Similarly ifh2
resolves to anEmpty
, only thenh3
is going to be executed.The named operator
defaultWith
makes 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