Version française
Home     About     Download     Resources     Contact us    
Browse thread
Resumable exceptions in plain OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe Raffalli <raffalli@u...>
Subject: Re: [Caml-list] Resumable exceptions in plain OCaml

Hi,

may be a little camlp4 would lead to a more natural and readable syntax. 
The idea is nice but the

   rraise (Foo i) (fun e -> try raise e with Foo_r1 x -> ...) looks 
confusing

while

   rraise Foo i with Foo_r1 x -> ...

is much clearer and certainly possible to define in camlp4 ?

Christophe Raffalli