neal at gafter.com
Wed Nov 11 10:42:14 PST 2009
On Wed, Nov 11, 2009 at 10:35 AM, Reinier Zwitserloot <
reinier at zwitserloot.com> wrote:
> Closures could solve this rather elegantly - letting you group both an
> initializing block and an error handler in one method call.
> NB: Just thought it was that time again to remind coin-dev of the
> 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