From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 54B9DBC3F for ; Mon, 25 Oct 2004 16:49:42 +0200 (CEST) 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 i9PEng8k026903 for ; Mon, 25 Oct 2004 16:49:42 +0200 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 QAA23691 for ; Mon, 25 Oct 2004 16:49:41 +0200 (MET DST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i9PEneDs026898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Oct 2004 16:49:41 +0200 Received: from [80.229.56.224] (helo=chetara) by ptb-relay02.plus.net with esmtp (Exim) id 1CM6AG-000Esi-Eo for caml-list@inria.fr; Mon, 25 Oct 2004 14:49:40 +0000 From: Jon Harrop To: "O'Caml Mailing List" Subject: Re: [Caml-list] Polymorphic pretty printing Date: Mon, 25 Oct 2004 15:45:04 +0100 User-Agent: KMail/1.6.2 References: <4173E464.7030500@andrej.com> <20041023.000711.91476428.debian00@tiscali.be> <417C1673.6020007@andrej.com> In-Reply-To: <417C1673.6020007@andrej.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Message-Id: <200410251545.04214.jon@jdh30.plus.com> X-Miltered: at concorde with ID 417D1286.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 417D1284.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 andrej:01 wrote:01 toplevel:01 hashtbl:01 cheers:01 ...:98 polymorphic:01 polymorphic:01 graphical:02 types:02 perhaps:03 library:03 tutorial:04 i'd:05 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: On Sunday 24 October 2004 21:54, Andrej Bauer wrote: > I'd be willing to take a shot at writing a more flexible toplevel, one > that allows to install polymorphic pretty-printers in a sane way. > ... I'd be very interested to hear the design decisions involved in such a project, and about the design of the current approach. Also, I think tutorial pretty printers could be very helpful for people (like me!) learning how to do this. Polymorphic pretty printers for types in the core library (Set, Map, Hashtbl) could be a handy add-on too. As a computer science teaching tool, perhaps these could be productively supplemented with graphical printers to print the internal representations as they evolve? Cheers, Jon.