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 UAA03572; Mon, 29 Sep 2003 20:17:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA02457 for ; Mon, 29 Sep 2003 20:17:42 +0200 (MET DST) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8TIHeH21082 for ; Mon, 29 Sep 2003 20:17:40 +0200 (MET DST) Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id h8TIHOC22511; Mon, 29 Sep 2003 13:17:25 -0500 (CDT) Date: Mon, 29 Sep 2003 13:22:25 -0500 (CDT) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Jean-Marc EBER cc: Martin Jambon , Subject: Re: [Caml-list] Printing text with holes In-Reply-To: <3F786FC3.4020807@lexifi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 printf:01 printf:01 familiarity:01 compiler:01 ocaml:01 sep:01 eber:02 wrote:03 jean-marc:03 interface:03 let:04 let:04 parse:04 parse:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 29 Sep 2003, Jean-Marc EBER wrote: > With "old" printf approach, you write something like: > let _ = > printf "Hello %s %s! It is %i o'clock.\n" first_name last_name time It also allows you to do: let _ = printf "Hello %s %s! It is %i o'clock.\n" name time To detect this is a problem, the compiler has to not only parse Ocaml, it also has to parse printf format strings. The one advantage that printf has is familiarity. All of us who are old C programmers (and I fall into this category) know printf. But that doesn't make it a good interface. Brian ------------------- 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