try/catch expression

Neal Gafter neal at
Wed Nov 11 10:42:14 PST 2009

On Wed, Nov 11, 2009 at 10:35 AM, Reinier Zwitserloot <
reinier at> wrote:

> <neal>
> Closures could solve this rather elegantly - letting you group both an
> initializing block and an error handler in one method call.
> </neal>
> NB: Just thought it was that time again to remind coin-dev of the
> usefulness
> of closures.

This particular hypothetical API is one of those that is much more useful if
the caller can use "nonlocal" control-flow (e.g., a "return" in the try
block or the catch block).  But when there are two blocks to be executed, as
here, even BGGA doesn't make it pretty.

More information about the coin-dev mailing list