Open emil14 opened 5 days ago
I definitely do not want it be desugared like deferred connections - by using locks. We'll end up having 2 different ways of doing exactly the same thing - defer receiving of a binary expression.
In cases with const refs/lits and ranges there was a difference in semantics - chained connection version was working differently and in a more performant way, so it was clear why use should do that, whenever possible. Here, however, it might lead to questions (why do they even have this more verbose syntax for the same thing?)
Problem
We still have to use deferred connections to trigger binary and ternary expressions
Proposal
Support binary and ternary expressions inside chained connections
Similar to #772 there will be 2 implementations - one for outside of chain (existing one) and the other for chains.
Questions to Answer
Range
/New
? For them it might be ok to have 2 versions, but is it ok for all the binary operators? Are we going to have 2 versions for each?lock
s? Won't it be too unobvious/implicit having that we have deferred connections? Isn't it too much special cases? Won't it damage language design?Related to #741