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 UAA12182; Fri, 6 Jun 2003 20:51:13 +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 UAA11928 for ; Fri, 6 Jun 2003 20:51:12 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h56IpBT28704 for ; Fri, 6 Jun 2003 20:51:11 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19OMIx-0000vM-00 for ; Fri, 06 Jun 2003 19:51:11 +0100 Date: Fri, 6 Jun 2003 19:51:11 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Why do input* and readdir throw End_of_file ... annoying! Message-ID: <20030606185111.GA3545@redhat.com> References: <32CAF7EC-9849-11D7-BAD2-000393863F70@exomi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Richard Jones X-Spam: no; 0.00; caml-list:01 readdir:01 recursion:01 beginners:01 freshmeat:01 ltd:98 ocaml:01 06,:02 london:97 wrote:03 annoying:03 tail:03 configurable:03 perl:03 tutorial:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Jun 06, 2003 at 01:49:55PM -0500, Brian Hurt wrote: > The problem with try/with is that it's way to easy to break tail recursion > using try/with. About every other week someone comes to the Ocaml > beginners list where they are doing something like: What's a good way to read all the lines of a file into a list? I can put it into the OCaml tutorial I'm writing. Rich. -- Richard Jones, Red Hat Inc. (London) and Merjis Ltd. http://www.merjis.com/ http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj NET::FTPSERVER is a full-featured, secure, configurable, database-backed FTP server written in Perl: http://www.annexia.org/freeware/netftpserver/ ------------------- 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