caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Chris King" <colanderman@gmail.com>
To: "Jon Harrop" <jon@ffconsultancy.com>
Cc: caml-list@yquem.inria.fr
Subject: Exception inferrence (was: Re: [Caml-list] Today's inflamatory opinion: exceptions are bad)
Date: Sun, 10 Dec 2006 19:18:17 -0500	[thread overview]
Message-ID: <875c7e070612101618s40c749capd26750eaf40fc533@mail.gmail.com> (raw)

(Changed the subject to avoid highjacking Brian's thread more than I
already have...)

On 12/10/06, Jon Harrop <jon@ffconsultancy.com> wrote:
> On Sunday 10 December 2006 03:35, Chris King wrote:
> > One thing Java (sort of) gets right is keeping track of which
> > exceptions a function can throw, making it easy to ensure that some
> > deeply nested piece of code won't cause the entire application to die
> > from some obscure exception.  I'd love to see a similar feature in
> > O'Caml, whereby the exceptions which a function can raise are part of
> > its type and are inferred and checked by the compiler.
>
> This has been done. There was a tool called ocamlexc that did whole-program
> analysis to find out which exceptions could propagate where. However, it
> wasn't useful enough to be kept up to date.
>
>   http://caml.inria.fr/pub/old_caml_site/ocamlexc/ocamlexc.htm

Hah, I feel foolish... the bottom of that page links [1] to a paper
co-authored by Xavier Leroy himself describing an exception inference
system for O'Caml.  I wonder if it has been considered for inclusion
in the compiler, and, if so, why it was rejected?

- Chris


                 reply	other threads:[~2006-12-11  0:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=875c7e070612101618s40c749capd26750eaf40fc533@mail.gmail.com \
    --to=colanderman@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=jon@ffconsultancy.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;
as well as URLs for NNTP newsgroup(s).