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 QAA12674; Thu, 29 Apr 2004 16:12:55 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA12657 for ; Thu, 29 Apr 2004 16:12:53 +0200 (MET DST) Received: from gatekeeper.elmer.external.excelhustler.com (gatekeeper.excelhustler.com [68.99.114.105]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3TECqjq025830 for ; Thu, 29 Apr 2004 16:12:52 +0200 Received: from chatterbox.elmer.internal.excelhustler.com (unknown [192.168.0.12]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "chatterbox.elmer.internal.excelhustler.com", Issuer "excelhustler.com" (not verified)) by gatekeeper.elmer.external.excelhustler.com (Postfix) with ESMTP id 067E2E013F; Thu, 29 Apr 2004 09:12:52 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id C22C95C005; Thu, 29 Apr 2004 09:12:51 -0500 (CDT) Received: from wile.internal.excelhustler.com (wile.internal.excelhustler.com [192.168.1.34]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id A64ED5C004; Thu, 29 Apr 2004 09:12:51 -0500 (CDT) Received: by wile.internal.excelhustler.com (Postfix, from userid 1000) id A03FD1B058; Thu, 29 Apr 2004 09:12:51 -0500 (CDT) Date: Thu, 29 Apr 2004 09:12:51 -0500 From: John Goerzen To: Benjamin Geer Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: Common IO structure Message-ID: <20040429141251.GB12640@excelhustler.com> References: <016401c42bc4$b6438840$19b0e152@warp> <20040428.004358.45522587.yoriyuki@mbg.ocn.ne.jp> <016501c42c73$24e64b30$ef01a8c0@warp> <20040428.015800.126758722.yoriyuki@mbg.ocn.ne.jp> <408EEE3E.7050008@socialtools.net> <20040428034415.GB19564@complete.org> <40902265.9040702@socialtools.net> <20040428214442.GE10198@excelhustler.com> <4090E597.1080603@socialtools.net> <20040429132316.GB11323@excelhustler.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040429132316.GB11323@excelhustler.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Scanned-By: clamscan at chatterbox.elmer.internal.excelhustler.com X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 latin-:01 irrelevant:01 binary:02 conversions:02 charset:97 charset:97 classes:03 classes:03 wrote:03 structure:06 java:07 i'm:07 defines:08 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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