-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 operator overloading for |
, at least in .vsh files, so we can pipe shit together
#3191
Comments
...or maybe a simple function built into
|
I think the pipe operator could be "overloaded" at some point for channels (between go routines) - for more information (incl. go routine reentrancy) see #1868 . Or maybe not for channels, but rather for instruction-level parallelism using similar principles as in zero-functional. |
Good point @dumblob 👍 Closing the idea above as this is unnecessarily complexity; an |
Like Built-in ORM: customers := sql db {
select count from Customer
} What do you think about a built-in sh? Say: output_value := shell {
cat sample.txt | head -7 | tail -5
} I suggested this in the proper topic too. |
@ofabricio that has one major downside - it's not compatible with the rest of the V ecosystem. So users would require more and more functionality in such a dedicated block over time and we would end up with a reimplemented |
Imagine being able to create more Bash-like .vsh scripts that do things like
but in V:
This may be overkill, but... kind of a fun idea!
The text was updated successfully, but these errors were encountered: