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

Add support for optionally typed inputs and outputs #32

Merged
merged 4 commits into from
Jun 13, 2019

Conversation

mitchmindtree
Copy link
Member

This allows for optionally specifying the full types of the inputs and
outputs of a Node during implementation by allowing to specify a full,
freestanding function, rather than only an expression.

The function's arguments and return type will be parsed to produce the
number of inputs and outputs for the node, where the number of arguments
is the number of inputs, and the number of tuple arguments in the output
is the number of outputs (1 if no tuple output type).

Some of this may have to be re-written when addressing a few follow-up
issues including #29, #19, #21 and #22, but I think it's helpful to
break up progress into achievable steps!

Closes #27 and makes #20 much more feasible.

This allows for optionally specifying the full types of the inputs and
outputs of a `Node` during implementation by allowing to specify a full,
freestanding function, rather than only an expression.

The function's arguments and return type will be parsed to produce the
number of inputs and outputs for the node, where the number of arguments
is the number of inputs, and the number of tuple arguments in the output
is the number of outputs (1 if no tuple output type).

Some of this may have to be re-written when addressing a few follow-up
issues including nannou-org#29, nannou-org#19, nannou-org#21 and nannou-org#22, but I think it's helpful to
break up progress into achievable steps!

Closes nannou-org#27 and makes nannou-org#20 much more feasible.
@mitchmindtree mitchmindtree changed the title Add support to allow for optionally typed inputs and outputs Add support for optionally typed inputs and outputs Jun 13, 2019
@mitchmindtree mitchmindtree merged commit d5809be into nannou-org:master Jun 13, 2019
@mitchmindtree mitchmindtree deleted the optionally_typed branch June 13, 2019 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Availability of Types for Node inputs and outputs
1 participant