Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Working around the brittle bindings problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-01-25 (07:25)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] Working around the brittle bindings problem
Jon Harrop wrote:
> Just occurred to me that one possible solution to our brittle bindings problem 
> might be to parameterize the whole library over the external calls that are 
> made.

Indeed, that's a brilliant idea. Btw, it has been suggested to you a few 
weeks ago.
> What you can do is to ship your library as a single module abstracted
> over all its dependencies (that is, a functor which takes as arguments
> modules from the stdlib and other dependent libraries). You can put in
> the interface whatever you expect from these modules, so the same
> functor could be used with future versions if they only add new fields
> (but not new constructors or record fields, for instance). Again, some
> Camlp4 hack could somewhat automate this. 

-- Alain