| ▲ | mesrik 3 hours ago | |||||||
So would you like to write shell commands connected with pipes like that too? So is this better too
than ?
Just because shell actually starts executables right to left when using pipes.
Reason to this behaviour is because it can fail early if there is problem constructing pipe first and not spend lot of time something finding later that some pipe components can't start and receive data properly.ps. I'm fine with current notation and would not like change it. | ||||||||
| ▲ | unilynx 2 hours ago | parent [-] | |||||||
I think he actually wants pipes. Instead of having to write:
it would be nice to write
javascript has proposals for pipe operators because as soon as the simple .map /.filter/.reduce APIs don't suffice (ie. as soon as Promise.all is needed) the f3(f2(f1(data))) mess starts. | ||||||||
| ||||||||