Talk:User defined pipe and redirection operators: Difference between revisions
Content added Content deleted
m (→more ambitious than unix: re: Python - Thinking aloud...) |
(→more ambitious than unix: "collateral programming", instead of "concurrent programming"?) |
||
Line 154: | Line 154: | ||
Thinking aloud: Python three+ different ways of achieving this pseudo-piping. Decorators, functional-programming and sub-classing. However overloading the operators is easiest done via a subclass. In Algol (I believe) functional-programming must be used. |
Thinking aloud: Python three+ different ways of achieving this pseudo-piping. Decorators, functional-programming and sub-classing. However overloading the operators is easiest done via a subclass. In Algol (I believe) functional-programming must be used. |
||
Thinking again: In the case of the above python sketch, records are processed one at a time, and ''cat'' stops while ''grep'' does its work on that particular record. So ''cat'' & ''grep'' are not ''exactly'' "concurrent". Is there a name for this kind of programming? I know of examples of this in application/utility programs (eg X-Windows and GTK) where the trick is using a "run-loop". A better description might be "collateral programming" (or co-programming) instead of "concurrent programming"? |
|||
⚫ | |||
⚫ |