Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Jim Farrand <jim.farrand@g...>
Subject: Re: [Caml-list] The Bridge Pattern in OCaml
On 28/03/2008, Oliver Bandel <oliver@first.in-berlin.de> wrote:
>  It seems that you already know, what things you
>  want to write to the files

No.

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
executable).

Regards,
Jim