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 UAA18175; Mon, 29 Sep 2003 20:16:06 +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 UAA11841 for ; Mon, 29 Sep 2003 20:16:04 +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 h8TIG3513120 for ; Mon, 29 Sep 2003 20:16:04 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1A42Z1-0002v2-00 for ; Mon, 29 Sep 2003 19:16:03 +0100 Date: Mon, 29 Sep 2003 19:16:03 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Printing text with holes Message-ID: <20030929181603.GA11196@redhat.com> References: 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-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dynamically:01 printf:01 printf:01 freshmeat:01 ltd:98 sep:01 sep:01 jambon:02 business:96 string:03 string:03 wrote:03 wrote:03 data:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Sep 29, 2003 at 11:39:32AM -0500, Brian Hurt wrote: > On Mon, 29 Sep 2003, Martin Jambon wrote: > > > Hello, > > > > I am curious to know what people use to print long text written in a > > natural language, and containing many holes, like dynamically generated > > web pages. > > I agree. I think printf is a horrible way to do output. Reasons include, > but are not limited to, the fact that you are basically creating a new > "mini-language" (the formatting language) which has to be type checked > etc. seperately from the main language, that the values being put into the > string are listed far from their positions in the string (your problem) > leading to missing parameters, parameters in the wrong order, etc. Well it may not be theoretically any good, but practically printf is immensely usable. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. "My karma ran over your dogma" ------------------- 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