Glenn Linderman wrote:
> 
> Cleanup is a nice word, but maybe sometimes you want to do something that
> doesn't really fit the connotation of cleaning up.  Whereas "always" just says
> when it is done.
> 
>     return ( $stuff, $morestuff, $whatever )  always close F;

That doesn't look like a block to me.

What it *does* look like is the statement modifier form of if/unless,
the difference being that it always permits the statement to
execute, regardless of the value of the predicate.
But under that interpretation, it doesn't happen at sub exit,
even when appended to return():

        return <F> always close F; # statement modifier?

would do the wrong thing.

I wonder if it shouldn't rather be

        return <F>;
        always { close F } # a catchy block.

-- 
John Porter

You can't keep Perl6 Perl5.

Reply via email to