On 24 February 2012 18:25, Andy Wingo <[email protected]> wrote:
> On Fri 24 Feb 2012 04:31, Daniel Hartwig <[email protected]> writes:
>
>> I ended up using run-with-pipe from guile-lib's (os process) module
>> which returns separate port objects--similar to the OP's proc..
>
> Should we incorporate something like this into Guile?
>
> Want to make a patch?  It could make open-process return the read and
> write ports separately.
>

Sure.

Since open-process is internal to the popen module, changing that is
no problem.  With regards to the open-pipe procedures would you rather
an API-breaking change to returning the pair of ports, or a new
procedure which returns the pair?

Having separate read and write ports is greatly more useful than
combining them.  It also removes the overhead of passing everything
through a soft port.  Some users may prefer the current convenience of
dealing with a single port, but it does not reflect the underlying
mechanics very well.

Reply via email to