From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 824B7BC88 for ; Fri, 4 Feb 2005 00:29:28 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j13NTSl0019658 for ; Fri, 4 Feb 2005 00:29:28 +0100 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 AAA28184 for ; Fri, 4 Feb 2005 00:29:27 +0100 (MET) Received: from mail.physik.uni-muenchen.de (mail.physik.uni-muenchen.de [192.54.42.129]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j13NTRDZ015672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 4 Feb 2005 00:29:27 +0100 Received: from localhost (unknown [127.0.0.1]) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id EB6332001A; Fri, 4 Feb 2005 00:29:26 +0100 (CET) Received: from mail.physik.uni-muenchen.de ([127.0.0.1]) by localhost (mail.physik.uni-muenchen.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26811-01-29; Fri, 4 Feb 2005 00:29:24 +0100 (CET) Received: from mailhost.cip.physik.uni-muenchen.de (kaiser.cip.physik.uni-muenchen.de [141.84.136.1]) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id ED23820016; Fri, 4 Feb 2005 00:29:24 +0100 (CET) Received: from eiger.cip.physik.uni-muenchen.de (eiger.cip.physik.uni-muenchen.de [141.84.136.54]) by mailhost.cip.physik.uni-muenchen.de (Postfix) with ESMTP id E12FD26E89; Fri, 4 Feb 2005 00:29:24 +0100 (CET) Received: by eiger.cip.physik.uni-muenchen.de (Postfix, from userid 3092) id D8A113C8F; Fri, 4 Feb 2005 00:29:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by eiger.cip.physik.uni-muenchen.de (Postfix) with ESMTP id D5CCB2D871; Fri, 4 Feb 2005 00:29:24 +0100 (CET) Date: Fri, 4 Feb 2005 00:29:24 +0100 (CET) From: Thomas Fischbacher To: Bardur Arantsson Cc: caml-list@inria.fr Subject: Re: [Caml-list] Estimating the size of the ocaml community In-Reply-To: <20050203224239.GB8482@scientician.net> Message-ID: References: <891bd33905020213315a2ebb18@mail.gmail.com> <8008871f05020213362d21ba87@mail.gmail.com> <000f01c50971$baad4840$0100a8c0@mshome.net> <1107403128.32586.223.camel@pelican.wigram> <20050203173556.4acec1c5.ocaml-erikd@mega-nerd.com> <009a01c50a1e$f6c92080$0100a8c0@mshome.net> <87d3baf87b21ac5a17a8d8782ac21cfa@mac.com> <20050203224239.GB8482@scientician.net> X-BOFH: Daemons did it MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: amavisd-new at physik.uni-muenchen.de X-Miltered: at concorde with ID 4202B3D8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4202B3D7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 wrote:01 printf:01 resolving:01 ad-hoc:01 syntax:01 serialize:01 ...:98 suck:98 distracted:98 cip:98 cip:98 lambda:01 lambda:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Thu, 3 Feb 2005, Bardur Arantsson wrote: > > >(7) I cannot easily (format t "DEBUG: compsite-thingy-bla-now-is ~A~%" > > >bla). > > > I don't quite follow; is there something wrong with Printf? > > It can only print simple values, not compound values such as records, > objects, etc... Well, alright, it can use a custom printer, but there > shouldn't really be any need to have to write custom printers for > e.g. records when it's patently obvious how they should be printed (in > the absence of a more specific format). Boy, it *does* suck if you just discovered a hairy problem and have to put all your time and energy into resolving this and then are annoyed/distracted/slowed down by the necessity to work on "ballast code", like writing special-purpose debug-printing functions ad-hoc. In Perl, one can at least use Data::Dumper for that purpose, as a substitute for Lisp's print/read consistency of structured data(*). Whenever I give a perl course, I make sure all my students do know how to use it for good. (*) Which, by the way, is already 95% of what people recently "re-discovered" as XML, modulo unnecessarily cluttered syntax and the inability to serialize networked, self-referencing values on the one side, and i18n on the other. -- regards, tf@cip.physik.uni-muenchen.de (o_ Thomas Fischbacher - http://www.cip.physik.uni-muenchen.de/~tf //\ (lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y) V_/_ (if (= x 0) y (g g (- x 1) (* x y)))) n 1)) (Debian GNU)