Because its not general enough. Only works for input from a file and output from a file.
You might want input from a file and output to a process stream, input from a socket and output to the console, etc. On Apr 22, 2008, at 3:02 PM, Eduardo Cavazos wrote: > Why wouldn't you just "Factor" out that pattern? Something like: > > : with-reader-writer ( path path quot -- ) ... ; > > So the above code is just: > > "in.txt" "out.txt" > [ ... ] > with-reader-writer > > Well, assuming the proposed "path objects with encoding slots", it > would look > like this: > > "in.txt" utf8 "out.txt" latin1 > [ ... ] > with-reader-writer > > Ed > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
