Just been reading  the latest of Elizabeth's wonderful blog posts on how
phasers work in perl6:
https://opensource.com/article/18/10/how-phasers-work-perl-6?fbclid=IwAR3eJSn5EdJh2DYgpjrFOy7kg-dShuilwQhHDHTANeb4JmHYSBiTz3WyxPA

I have question on the KEEP/UNDO example:
{
    KEEP $dbh.commit;
    UNDO $dbh.rollback;
    ...    # set up a big transaction in a database
    True;  # indicate success
}

Won't that "True;  # indicate success" just force the KEEP phaser to run?
Shouldn't you just use the result of  whatever  is the result of "... # set
up a big transaction in a database"?

Reply via email to