Version française
Home     About     Download     Resources     Contact us    
Browse thread
[ANN] ocamltarzan 0.1
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Romain Beauxis <toots@r...>
Subject: Re: [Caml-list] [ANN] ocamltarzan 0.1
	Hi !

Le Thursday 16 April 2009 14:15:40 Yoann Padioleau, vous avez écrit :
> Sexplib and binprot by Jane Street are attractive, but they rely on
> camlp4. I don't like camlp4. I like the metaprogramming facility it
> offers but it has many disadvantages. So I've found a in-the-middle
> solution where I use camlp4 to generate code (via the small script
> ocamltarzan.ml), save the generated code in a file (e.g
> test/foo_sexp.ml), which allows then to completely remove the
> dependency to camlp4. Once the code has been generated, all
> dependencies to camlp4 can be removed. If tomorrow an incompatible new
> version of camlp4 arrives (e.g. camlp6 ...), your code will still
> work, because it does not rely on the new behavior of this camlp4.
> It's just regular plain good ocaml code.

Shouldn't this just be a software/script independant from sexplib ?

On the one hand, such a technique could be useful for other code using other 
camlp4 extensions, and on the other hand, this would avoid yet another fork...


Romain