Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > Re: try ... fin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 2782 of 2842
Post > Topic >>

Re: try ... finally ...

by Vesa Karvonen <vesa.karvonen@[EMAIL PROTECTED] > Feb 28, 2008 at 07:53 PM

Joachim Durchholz <jo@[EMAIL PROTECTED]
> wrote:
> Am Donnerstag, den 28.02.2008, 11:16 +0000 schrieb Ian.Stark@[EMAIL PROTECTED]
> > There's a further refinement of this in the "exceptional syntax"
> > proposed by Benton+Kennedy in JFP 11(4):394-410
> > 
> >   http://dx.doi.org/10.1017/S0956796801004099
> >   http://research.microsoft.com/~akenn/sml/ExceptionalSyntax.pdf
> > 
> > where you want to identify code that runs only if an exception is not
> > raised.  Independently, Erlang introduced the same thing:
> > 
> >  try Expr of 
> >    Pattern1 [when Guard1] -> Body1;
> >    ...
> >  catch
> >    ExceptionPattern1 [when ExceptionGuard1] -> ExceptionBody1
> >    ...
> >  after
> >    FinalBody

> I have known this idiom as try-catch-finally (I think these keywords are
> used in Delphi).  [...]

Note that this (try-...-finally) is *not* the main point of the
Exceptional Syntax article.  (Note the pattern match between "of" and
"catch" in the above Erlang example.)  I recommend reading the Exceptional
Syntax article.

-Vesa Karvonen




 3 Posts in Topic:
Re: try ... finally ...
Joachim Durchholz <jo@  2008-02-28 20:34:58 
Re: try ... finally ...
Vesa Karvonen <vesa.ka  2008-02-28 19:53:49 
Re: try ... finally ...
Joachim Durchholz <jo@  2008-02-28 21:14:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:06:43 CDT 2008.