Talk:User defined pipe and redirection operators: Difference between revisions
Content added Content deleted
m (rm dup section) |
m (→more ambitious than unix: re: Python - Thinking aloud...) |
||
Line 134: | Line 134: | ||
cat = Filter( |
cat = Filter(cat_code) |
||
def grep_code(pattern, args): |
def grep_code(pattern, args): |
||
Line 146: | Line 146: | ||
cat("List_of_computer_scientists.lst") | grep("ALGOL") > "ALGOL_pioneers.lst"</lang> |
cat("List_of_computer_scientists.lst") | grep("ALGOL") > "ALGOL_pioneers.lst"</lang> |
||
So try not using " |
So try not using "Unix pipes" and "Unix processes". |
||
I hope that helps. |
I hope that helps. |
||
[[User:NevilleDNZ|NevilleDNZ]] 22:24, 13 September 2011 (UTC) |
[[User:NevilleDNZ|NevilleDNZ]] 22:24, 13 September 2011 (UTC) |
||
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. |
|||
[[User:NevilleDNZ|NevilleDNZ]] 00:04, 14 September 2011 (UTC) |