chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] Suggestion for the ports unit: port-pipe


From: Felix
Subject: Re: [Chicken-hackers] Suggestion for the ports unit: port-pipe
Date: Mon, 09 Aug 2010 20:31:18 +0200 (CEST)

From: Peter Bex <address@hidden>
Subject: Re: [Chicken-hackers] Suggestion for the ports unit: port-pipe
Date: Mon, 9 Aug 2010 15:23:04 +0200

> On Mon, Aug 09, 2010 at 03:19:34PM +0200, Thomas Chust wrote:
>> Hello,
>> 
>> I think this would be a useful addition indeed.
>> 
>> Looking at the SchemeCrossReference[1] and the PLT Racket manual[2] I
>> find that Gauche, Racket, Scsh and STk all have a procedure compatible
>> with the signature (copy-port source destination) where source
>> satisfies input-port? and destination satisfies output-port?. If
>> CHICKEN got a procedure for the same purpose, I think it would
>> definitely make sense to make it compatible with this calling
>> convention as well.
> 
> Isn't this what the sendfile egg does?
> 
> It currently doesn't handle custom ports as input ports, but that
> could be added.
> 

But it only provides character/string based copying, Moritz'
suggestion allows arbitrary reader/write procedures, which I
find quite nice.


cheers,
felix



reply via email to

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