caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Exception inferrence (was: Re: [Caml-list] Today's inflamatory opinion: exceptions are bad)
@ 2006-12-11  0:18 Chris King
  0 siblings, 0 replies; only message in thread
From: Chris King @ 2006-12-11  0:18 UTC (permalink / raw)
  To: Jon Harrop; +Cc: caml-list

(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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-11  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-11  0:18 Exception inferrence (was: Re: [Caml-list] Today's inflamatory opinion: exceptions are bad) Chris King

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