New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LAST phaser doesn't fire with return #5542
Comments
- fix error if a block had both a LEAVE and LAST phaser: found this will investigating #5542 - increment counters only when needed - only check once for number of exceptions
For the record, it is documented to work: https://docs.raku.org/language/phasers#LAST |
Apart from the fact that you could argue that the At a technical level, it's because the So:
works, but
does not. Since to be able to support this, it would require same serious redesign with regards to I propose to close this issue with a WONTFIX. |
When we say a WONTFIX, are we saying it's going to be considered canonically correct as designed, or a "not sufficiently common and too difficult to fix at present"? I'd update in the meantime the documentation to say that if there is a need for LAST to be fired with return, as a workaround, one can do |
I'd focus on the "canonically correct" since the last iteration was never reached with |
The Problem
Here's the code that has issues with proper calling of
LAST
.Expected Behavior
The output should read in order,
entered
,first
,last
,left
Actual Behavior
The output reads in order,
entered
,first
,left
.The text was updated successfully, but these errors were encountered: