guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filter IO through an external command


From: Daniel Hartwig
Subject: Re: Filter IO through an external command
Date: Mon, 27 Feb 2012 14:33:31 +0800

On 24 February 2012 18:25, Andy Wingo <address@hidden> wrote:
> On Fri 24 Feb 2012 04:31, Daniel Hartwig <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]