Browse thread
Estimating the size of the ocaml community
-
Yaron Minsky
-
Christopher A. Watford
-
Frédéric_Gava
-
skaller
-
Erik de Castro Lopo
- Olivier_Pérès
-
Thomas Fischbacher
-
Frédéric_Gava
-
Thomas Fischbacher
- Paul Snively
- josh
- Richard Jones
-
Jon Harrop
-
Michael Walter
-
Jon Harrop
- Damien Doligez
- Thomas Fischbacher
- Michael Walter
-
Radu Grigore
- Gerd Stolpmann
- Jon
-
Jon Harrop
- Thomas Fischbacher
- Richard Jones
-
Michael Walter
- Ville-Pertti Keinonen
- Oliver Bandel
- Basile STARYNKEVITCH
-
Thomas Fischbacher
- ronniec95@l...
- skaller
- chris.danx
-
Frédéric_Gava
-
Erik de Castro Lopo
- sejourne_kevin
- Stefano Zacchiroli
-
skaller
-
Frédéric_Gava
- Kenneth Knowles
- Michael Jeffrey Tucker
- Richard Jones
- Nicolas Cannasse
- Evan Martin
- Eric Stokes
- chris.danx
- Sylvain LE GALL
- sejourne_kevin
- Sven Luther
- Johann Spies
-
Christopher A. Watford
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-02-06 (11:30) |
From: | Christophe TROESTLER <Christophe.Troestler@u...> |
Subject: | Re: [Caml-list] The boon of static type checking |
On Sat, 5 Feb 2005, Remi Vanicat <remi.vanicat@gmail.com> wrote: > > On Fri, 04 Feb 2005 23:27:42 +0100 (CET), Christophe TROESTLER > <Christophe.Troestler@umh.ac.be> wrote: > > On Fri, 4 Feb 2005, Thomas Fischbacher <Thomas.Fischbacher@Physik.Uni-Muenchen.DE> wrote: > > > > > > When I do algorithmically involved stuff, I frequently pretty soon > > > reach the stage where I pass around structures of hash tables of > > > structures and vectors of structures of vectors of numbers, say. I > > > personally did experience it as painful to have to write specialized > > > print functions for stuff like that. [...] > > > > To Camlp4 knowledgeable people : is Camlp4 able to automatically > > generate such printers ? > > > > Yes. In fact there is IoXML for xml parser and printer that can be found at > http://pauillac.inria.fr/~ddr/IoXML/ > one could change it for non XML custom printer easily (I belive) My concern is with the types: if you want to "print x", you somehow need to know the type of "x"... which is not available to camlp4. However, I was thinking that maybe using the .annot file, camlp4 could generate a good-enough printer (functions, abstract types, objects being still opaque of course). Such a system should be configurable because I suppose some people would be happy with, say hashes, to be <abstr> while others may want a textual representation. ChriS