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

Support for using Block as a function decorator #1

Open
zyga opened this issue Dec 9, 2013 · 0 comments
Open

Support for using Block as a function decorator #1

zyga opened this issue Dec 9, 2013 · 0 comments

Comments

@zyga
Copy link
Owner

zyga commented Dec 9, 2013

It should be possible to use Block as a function decorator:

@block
def add(a:InputPort(), b:InputPort()) -> OutputPort(primary=True):
return a + b

It is unclear if annotation syntax is required, it might be possible to pass the same data directly to Block().

I suspect that OutputPort with primary=True should be a default value though (maybe a hard requirement)

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

No branches or pull requests

1 participant