Redirected to perl6-language-flow.

At 12:23 PM 8/11/00 +0100, Graham Barr wrote:
>On Thu, Aug 10, 2000 at 07:30:53PM -0700, Peter Scott wrote:
> > If we're really talking about new keywords, we wouldn't need a ; at the 
> end
> > of the last block; it's only needed at the moment because eval is a
> > function, not a keyword.  I would vote for the keywords only because 
> people
> > are going to forget the ; otherwise.
>
>That maybe a reason to use `try' instead of `eval'. Another difference would
>be that try will rethrow uncaught error, eval does not. And of course
>a die in any catch block would throw an error to a try/eval block up the
>stack, after running the continue block. So a    die;   in the catch
>block would rethrow the same error.

If we did use 'try', would we retire the block form of 'eval'?  It could be 
confusing to have a keyword with almost identical but subtly different 
semantics to a function.


--
Peter Scott
Pacific Systems Design Technologies

Reply via email to