-
Notifications
You must be signed in to change notification settings - Fork 236
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
require/load as part of the syntax #20
Comments
Actually having written those examples and forgotten STDIN STDOUT for some of them I also think they should be implicit |
+1 they should be implicit ! |
I think you should be able to abstract part of stream in a form of a function, e.g.
I am not sure if proposed process model fit well in the language. |
@matz I agree, I like the idea of making STDIN and STDOUT at least somewhat explicit so that it's easier to abstract over streams. Something like |
@matz obviously this example is trivial and is more suited to your abstraction. For the file loading stuff I was thinking of more complex/larger pieces of code. @nicolasmccurdy would there be a problem with having it implicit as well as optionally explicit? |
Personally, I like the |
I think we need 'stream processing function' definition as @matz says. In addition, the namespace concept should be defined such as |
This comment #18 (comment) made me think that it would be awesome to have some way of pulling in other streem files inline.
Maybe something like method_missing would look on the file system. Or an explicit syntax for pulling streems in so they could be preloaded.
or with method missing style
The text was updated successfully, but these errors were encountered: