2 ms·
This is not true in Raku: whichever way you leave a subroutine, the returned value will be checked against the return constraint. And throw if that fails. Mor
by lizmat 7y ago
This is not true in Raku: whichever way you leave a subroutine, the returned value will be checked against the return constraint. And throw if that fails.
More generally, you can specify KEEP and UNDO phasers in a block, that will fire whether the block is left successfully or not. So a typical usage would be `UNDO $dbh.rollback`.