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
The Bridge Pattern in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-03-28 (11:45)
From: Jim Farrand <jim.farrand@g...>
Subject: Re: [Caml-list] The Bridge Pattern in OCaml
On 28/03/2008, Oliver Bandel <> wrote:
>  It seems that you already know, what things you
>  want to write to the files


The opposite in fact.  I want to be able to serialize things I (the
framework designer) never even thought of.  I want the users of my
framework to have maximum flexibility to implement whatever behaviour
they like, without restricted them to the things I thought of putting
into the file format.

O'Caml marshalling is in the right direction (take any closure and
serialize it, this is very flexible in this respect), but it is far to
restricted in other ways to be of use (file format tied to particular