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

new operator #10

Closed
fibo opened this issue Aug 2, 2015 · 3 comments
Closed

new operator #10

fibo opened this issue Aug 2, 2015 · 3 comments

Comments

@fibo
Copy link
Owner

fibo commented Aug 2, 2015

A new keywork should be supported. Syntax proposed is 'new Foo()' will result in a function that returns an instance of Foo, where Foo is looked for using dflow function resolution.

@fibo
Copy link
Owner Author

fibo commented Aug 2, 2015

In the worst case I Will create a new0, new1, new2 .. functions to handle the arguments, in order to be able to use a 'new Foo(bar)' task that returns a 1arity constructor.

@fibo fibo changed the title new new operator Oct 17, 2015
@fibo
Copy link
Owner Author

fibo commented Oct 25, 2015

already implemented, there is also an example: it just need to be documented in examples list.

@fibo
Copy link
Owner Author

fibo commented Jun 23, 2016

@fibo fibo closed this as completed Jun 23, 2016
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