Skip to content
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

Allow do to execute procedures passed to it #6

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

zephraph
Copy link
Owner

I ran into a case where I'd like to execute a nested procedure. I'd already added similar functionality inside of match and ultimately most of the operations should accept procedures as well as functions.

Here's what this looks like:

// First we'll define a procedure to be passed into `do`
const nestedProcedure = procedure("nested procedure").do(something);

// Then we'll call the procedure w/ do
await procedure('parent procedure').do(nestedProcedure).exec({});

@zephraph zephraph added the minor label Jun 15, 2021
@zephraph zephraph self-assigned this Jun 15, 2021
@zephraph zephraph merged commit f48bd47 into master Jun 15, 2021
@zephraph zephraph deleted the allow-nested-do-procs branch June 15, 2021 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant