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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jonathandeanharrop@g...>
Subject: Re: [Caml-list] Metaprogramming features
On Monday 06 October 2008 15:06:12 you wrote:
> Jon Harrop wrote:
> > Code is represented by the form:
> >
> >   .< 1 + 2 >.
> >
> > This may be executed using:
> >
> >   .! .< 1 + 2 >.
> >
> > Values may be injected into code using:
> >
> >   .< 1 + .~x >.
>
> I'm definitely missing something here.  How are the above examples
> different from:
> let f () = 1 + 2;;
> f ();;
> let f x = 1 + x;;
>
> ?
>
> This is a non-trivial question, as there is no clear delineation between
> data structures and executable code.

Exactly. The difference is (only) the performance characteristics.

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e