Browse thread
[Caml-list] Different types of streams
-
Nicolas George
- Daniel de Rauglaudre
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 |
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