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 IAA31428; Tue, 30 Sep 2003 08:11:59 +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 IAA04354 for ; Tue, 30 Sep 2003 08:11:58 +0200 (MET DST) Received: from old.davidb.org (adsl-64-175-171-246.dsl.sndg02.pacbell.net [64.175.171.246]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h8U6Bu516181; Tue, 30 Sep 2003 08:11:56 +0200 (MET DST) Received: from davidb by old.davidb.org with local (Exim 3.36 #1 (Debian)) id 1A4Djb-0002EO-00; Mon, 29 Sep 2003 23:11:43 -0700 Date: Mon, 29 Sep 2003 23:11:43 -0700 From: David Brown To: Brian Hurt Cc: Pierre Weis , jeanmarc.eber@lexifi.com, martin_jambon@emailuser.net, caml-list@inria.fr Subject: Re: [Caml-list] Printing text with holes Message-ID: <20030930061143.GA8518@davidb.org> References: <200309292048.WAA16827@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 caml-list:01 printf:01 printf:01 type-safe:01 ocaml:01 ocaml:01 sep:01 dave:03 wrote:03 probably:05 output:05 guess:06 brian:06 languages:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Sep 29, 2003 at 11:40:21PM -0500, Brian Hurt wrote: > At heart, printf is doing two seperate jobs... I've done considerable programming both in languages that have printf-style formatting (checked and unchecked), as well as languages that require operators or such to build up formatting. Any time I've wanted to output something, I have one of two responses, depending on the language: - Grumble, grumble, grumble. - Just write it. You can probably guess which is which. That ocaml has been able to integrate printf formatting in a type-safe way is truly amazing, and to me one of the things that makes ocaml a wonderful language. True, it isn't universally extensibly, but it is a lot more so than most people think. 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