From: Christophe Raffalli <raffalli@univ-savoie.fr>
To: Christophe Raffalli <raffalli@univ-savoie.fr>
Cc: oleg@pobox.com, caml-list@inria.fr
Subject: Re: [Caml-list] Resumable exceptions in plain OCaml
Date: Fri, 16 Jun 2006 23:41:21 +0200 [thread overview]
Message-ID: <44932581.4010809@univ-savoie.fr> (raw)
In-Reply-To: <4493239E.2050102@univ-savoie.fr>
Christophe Raffalli a écrit :
>
> 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
>
yet another remark
rraise (Foo i) (function Foo_r1 x -> ... | e -> raise e)
seems shorter, equivalent and more efficient. Am I wrong ?
remark: it seems one very rarely use exceptions as values passed to
function and matched with normal match ... but this is
completely legal in OCaml !
In fact exceptions in OCaml are one big polymorphic variant type that
existed before polymorphic variant where introduced ;-)
Christophe Raffalli
next prev parent reply other threads:[~2006-06-16 21:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 22:54 oleg
2006-06-14 23:46 ` [Caml-list] " Erik de Castro Lopo
2006-06-16 21:33 ` Christophe Raffalli
2006-06-16 21:41 ` Christophe Raffalli [this message]
2006-06-17 7:45 ` oleg
2006-06-18 9:01 ` Dmitry Bely
2006-06-19 21:40 ` oleg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44932581.4010809@univ-savoie.fr \
--to=raffalli@univ-savoie.fr \
--cc=caml-list@inria.fr \
--cc=oleg@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox