Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Different types of streams
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] Different types of streams

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.

Bug reports:  FAQ:
To unsubscribe, mail  Archives: