caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Proposal: extend try to handle success
@ 2014-02-04 17:00 Jeremy Yallop
  2014-02-04 17:14 ` Simon Cruanes
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Jeremy Yallop @ 2014-02-04 17:00 UTC (permalink / raw)
  To: Caml List

The recent thread about the representation of options highlighted a
shortcoming in the "try" construct: there isn't a convenient way to
express code that should run when the body of the "try" doesn't raise
an exception.

I'd like to propose extending OCaml with a design once suggested by
Christophe Raffalli which elegantly handles this case.  The details,
along with an implementation that you can try out, are in the
following blog post:

    http://ocamllabs.github.io/compiler-hacking/2014/02/04/handler-case.html

Feedback welcome!

Jeremy

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-02-10 14:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 17:00 [Caml-list] Proposal: extend try to handle success Jeremy Yallop
2014-02-04 17:14 ` Simon Cruanes
2014-02-04 18:09   ` Jeremy Yallop
2014-02-04 19:05     ` Gabriel Scherer
2014-02-04 19:18 ` Markus Mottl
2014-02-04 19:29   ` Markus Mottl
2014-02-04 19:42     ` Yaron Minsky
2014-02-05 16:04       ` Jesper Louis Andersen
2014-02-06 10:58 ` Goswin von Brederlow
2014-02-06 11:10   ` Ben Millwood
2014-02-10  8:47     ` Goswin von Brederlow
2014-02-10  9:23       ` Ben Millwood
2014-02-10 14:39         ` Alain Frisch
2014-02-06 11:36   ` Jeremy Yallop

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