From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA08176; Mon, 27 Aug 2001 11:49:07 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA08227 for ; Mon, 27 Aug 2001 11:49:07 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f7R9n6P24259; Mon, 27 Aug 2001 11:49:06 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id LAA14347; Mon, 27 Aug 2001 11:49:06 +0200 Date: Mon, 27 Aug 2001 11:49:06 +0200 From: Daniel de Rauglaudre To: Nicolas George Cc: caml-list@inria.fr Subject: Re: [Caml-list] Different types of streams Message-ID: <20010827114906.K13152@verdot.inria.fr> References: <20010826202317.A9010@aimlin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010826202317.A9010@aimlin>; from nicolas.george@ens.fr on Sun, Aug 26, 2001 at 08:23:17PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Sun, Aug 26, 2001 at 08:23:17PM +0200, Nicolas George wrote: > Is there any deep reason to have two incompatible types of streams in the > same Caml type: those built using [< >] expressions and those built with > Stream.from Stream.of_channel? I am the implementor of the streams. Actually, I have never been interested in the streams themselves, but more in parsing. I would have preferred that streams were just a couple of functions: (unit -> 'a) * (unit -> unit) where the first function returns the first element of the stream and the second function throws the first element away. I am not sure that streams built with [< >] are so interesting, especially if they are destinated to a real parser. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr