-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Better system chaining / piping #11571
Copy link
Copy link
Closed as not planned
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useX-Needs-SMEThis type of work requires an SME to approve it.This type of work requires an SME to approve it.
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useX-Needs-SMEThis type of work requires an SME to approve it.This type of work requires an SME to approve it.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What problem does this solve or what need does it fill?
There are many different methods to control the execution flow of a system set. I think many of them could be unified into an easy and intuitive API. For example, "piping" and "chaining" systems is essentially the same thing: you could look at "chaining" as piping
(). Ideally, these two concepts should be merged into a nice and consistent API.What solution would you like?
I think we can achieve a really nice looking API by utilizing the
Shr(orShl) traits.For example:
Simple chaining
Simple piping
Complex chaining + piping
What alternative(s) have you considered?
Keep the API as is
Additional context