Comments (7)
Actually having written those examples and forgotten STDIN STDOUT for some of them I also think they should be implicit
from streem.
+1 they should be implicit !
from streem.
I think you should be able to abstract part of stream in a form of a function, e.g.
def split_into_lines {
current.split("\n")
}
def match_today {
current.match(Date.today)
}
STDIN | split_into_lines | match_today | STDOUT
I am not sure if proposed process model fit well in the language.
from streem.
@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 STDIN | main | STDOUT
could be used as the equivalent of a main function.
from streem.
@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?
from streem.
Personally, I like the %x{file-to-load}
syntax best, because it is fairly concise, knows exactly which file to load, and isn't completely implicit. Although I do thing a more obvious, less strange syntax, such as {{file-to-load}}
would be better. And functions would still be possible. This isn't a mutually exclusive thing.
from streem.
I think we need 'stream processing function' definition as @matz says. In addition, the namespace concept should be defined such as class
, package
or namespace
. import
statement may be useful because it's intuitive.
Anyway, basically I also would like to add +1 to @markburns.
from streem.
Related Issues (20)
- BUG: return breakthrough statements HOT 8
- task_tid function HOT 1
- tee HOT 1
- reserved identifier violation HOT 2
- Completion of error handling HOT 2
- could there be more streams? HOT 7
- Is there function to execute a shell command HOT 6
- This is beautiful HOT 1
- streem crashed when run: seq(10) | {x -> x * 2} | stdout HOT 9
- Crashed when run examples/06echo.strm
- No output when run examples/05skip.strm HOT 1
- Is chan() can be use? HOT 1
- Support for actor? HOT 1
- How to access named array in namespace HOT 1
- Homebrew formula for Streem HOT 2
- Undefined reference to `qsort_r' on Alpine Linux in Dockerfile HOT 5
- Are there Official Website and Docs? HOT 4
- I read your book, curious how you test if the grammar work first. ARiGaDo! HOT 3
- Useful for ideas for streem? :) HOT 1
- Intended unlock in `kvs_update`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streem.