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
{{ message }}
Repository navigation
Add OR and AND combinators for system run conditions #7584
> I suspected that the only way to make an OR-combinator might be using a custom System impl, and now you confirmed it. So, I think it's out of scope for this PR.
Agreed. I'd like both OR and AND combinators (to follow-up #7559), but that's out of scope here.
Just to clarify the behavior of these combinators, they should short-circuit, right? A non-short-circuiting AND combinator would be fairly useless, since you could achieve the same effect by just calling .run_if() multiple times.
Activity
joseph-gio commentedon Feb 10, 2023
Just to clarify the behavior of these combinators, they should short-circuit, right? A non-short-circuiting AND combinator would be fairly useless, since you could achieve the same effect by just calling
.run_if()multiple times.alice-i-cecile commentedon Feb 10, 2023
Yeah, short-circuiting is essential. And should have non-surprising behavior (barring interior mutability) because run conditions are read-only.
joseph-gio commentedon Feb 10, 2023
In that case, I think it would be good to call these
and_then/or_else, in order to emphasize the fact that they short circuit.Add AND/OR combinators for run conditions (#7605)