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 FAA27827; Mon, 25 Oct 2004 05:02:30 +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 FAA27907 for ; Mon, 25 Oct 2004 05:02:28 +0200 (MET DST) Received: from mail.davidb.org (adsl-64-172-240-129.dsl.sndg02.pacbell.net [64.172.240.129]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i9P32Q7A021072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Oct 2004 05:02:27 +0200 Received: from davidb by mail.davidb.org with local (Exim 4.42 #1 (Debian)) id 1CLv7h-0000Sr-Lu; Sun, 24 Oct 2004 20:02:17 -0700 Date: Sun, 24 Oct 2004 20:02:17 -0700 From: David Brown To: skaller Cc: Andrej Bauer , Christophe TROESTLER , "O'Caml Mailing List" Subject: Re: [Caml-list] Polymorphic pretty printing Message-ID: <20041025030217.GB1582@old.davidb.org> References: <4173E464.7030500@andrej.com> <20041023.000711.91476428.debian00@tiscali.be> <417C1673.6020007@andrej.com> <1098666276.3075.65.camel@pelican.wigram> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1098666276.3075.65.camel@pelican.wigram> User-Agent: Mutt/1.5.6i X-Miltered: at nez-perce with ID 417C6CC2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 caml-list:01 2004:99 printf:01 sprintf:01 %02:01 %02:01 verbose:01 clumsy:01 ocaml:01 polymorphic:01 routines:02 dave:03 wrote:03 oct:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Oct 25, 2004 at 11:04:36AM +1000, skaller wrote: > I'm curious why people want to use these kinds of routines. > What does printf style mini-language printing have to offer compared to > just using plain old Ocaml functions? sprintf "%04d/%02d/%02d %02d:%02d:%02d" y m d h m s becomes rather verbose and clumsy when written out as functions. Dave ------------------- 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