English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] [ANN] The Missing Library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-29 (14:12)
From: John Goerzen <jgoerzen@c...>
Subject: Re: [Caml-list] Re: Common IO structure
On Thu, Apr 29, 2004 at 08:23:16AM -0500, John Goerzen wrote:
> And before you say, "See, Java has a StreamReader too!", note that
> codecs defines *4* classes: StreamWriter, StreamReader,
> StreamReaderWriter, and StreamRecoder.  I can handle that.

And I should add that the only time I even care about these 4 classes is
when I need to do some sort of charset handling or conversion.

If I'm just reading binary or ASCII text, the entire issue is completely
irrelevant to me.  As it should be.

And yet if I want to do charset conversions (the example I posted could
be extended to, for instance, convert Latin-2 to UTF-8 on the fly with
only a few more characters), it's still easy.

-- John

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners