-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A better DSL for flow queries #39
Comments
A format like the following would probably be most:
Or perhaps 'Seq' instead of 'Flow'? |
Perhaps best to just use lists for branches and tuples for sequences.
|
A better DSL was necessary for `Flow`s (workflow queries), because the previous approach of abusing Python operators was confusing and not future-proof, as mentioned in issue #39. This commit improves the situation: we may now use `Flow.serial()`, with tuples for serial flows and lists for parallel flows. Additionally, the use of the ellipsis and the necessary recursive types should now be typechecked.
Closed 6bee39b |
Note that the reflected |
Right now, querying workflows is done using
Flow
s, which are constructed by abusing Python's>>
operator and...
ellipsis type. This is not future-proof, because it leaves very little room for adding functionality, and there are some other issues (such as: how do you express at what node a flow starts?)A LINQ-style domain-specific language within Python would probably fit better.
The text was updated successfully, but these errors were encountered: