Replies: 3 comments
-
This is how this code would look like without both multi-senders and multi-then sugars:
And this is how it would look like with multi-then but without multi-senders:
|
Beta Was this translation helpful? Give feedback.
-
I think we shouldn't implement both of these forms at this point. It's harder to remove stuff than to add. I'm not sure that these two add much value so there are much more important things to work on (like bugs in compiler or analyzer improvements) |
Beta Was this translation helpful? Give feedback.
-
Multiple then connections syntax sugar is implemented Multiple senders form isn't and probably won't be as leading to complicated code and too many ways to do the same thing |
Beta Was this translation helpful? Give feedback.
-
Now we have
a.b -> (c.d -> e.f.)
which means "sending from a.b triggers sending from c.d to e.f"But what if we wanna say "sending from a.b triggers multiple things"?
Now we have to do something like this
Which isn't consistent with both multiple senders and multiple receivers forms.
Multiple senders:
Multiple receivers:
Proposal syntax:
This is how it could look like
Of course we can combine them
P.S - This is made up example but it looks scary so we need to think twice before releasing both multi-senders and (especially) "multi-then"
Beta Was this translation helpful? Give feedback.
All reactions