Slava Pestov <[EMAIL PROTECTED]> writes:
>
>
> On Apr 22, 2008, at 3:19 PM, Eduardo Cavazos wrote:
>
> > I'd like to point out that even with the change you proposed, given
> > that the
> > pattern looks like the above, I'd still be inclined it out in to a
> > with-reader-writer ( path path quot -- ).
>
> Sure, that would be useful, and the implementation of with-reader-
> writer would be simpler with my changes too.
>
> Slava
>
> -------------------------------------------------------------------------
> 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
>
What if you don't have exactly one reader and exactly one writer? Maybe we can
have with-reader-reader-writer(path path path quot -- )? And
with-reader-writer-writer(path path path quot -- )? And so on for every likely
number of simultaneous readers/writers.
Perhaps something like the following would be preferable?
"in.txt" utf8 <file-reader> [|in-file|
"out.txt" latin1 <file-writer> [|out-file|
"out2.txt" latin1 <file-writer> [|out2-file|
in-file read
...
out-file write
out2-file write
] with-disposal
] with-disposal
] with-disposal
-------------------------------------------------------------------------
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