in reply to Re^4: perl5 vs perl6
in thread perl5 vs perl6

Sigh. A let may certainly be used in ordinary blocks. See http://dev.perl.org/perl6/synopsis/S04.html for the definition of successful exit. The KEEP and UNDO blocks use the same definition, and are arguably part of the same underlying mechanism. You can view a let as a temp that merely does UNDO instead of LEAVE.

Replies are listed 'Best First'.
Re^6: perl5 vs perl6
by blazar (Canon) on Jan 11, 2005 at 09:56 UTC
    Sigh. A let may certainly be used in ordinary blocks. See
    Sigh. So it is indeed just like I remembered in the first place, which is good news anyway, as I consider this to be a very desirable feature...