We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$start-expr ff $end-expr always evaluates $end-expr, giving surprising side-effects.
$start-expr ff $end-expr
I expect that the left-hand side, the $start-expr, must be True before evaluating the right-hand side, the $end-expr.
The issue as I see it is that the $end-expr always runs, even before the $start-expr toggles the flip-fop on.
say 'ff side effect=', gather { False ff .take for 1..5 }; say 'fff side effect=', gather { False fff .take for 1..5 };
ff side effect=() fff side effect=()
ff side effect=(1 2 3 4 5) fff side effect=()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The Problem
$start-expr ff $end-expr
always evaluates $end-expr, giving surprising side-effects.I expect that the left-hand side, the $start-expr, must be True before evaluating the right-hand side, the $end-expr.
The issue as I see it is that the $end-expr always runs, even before the $start-expr toggles the flip-fop on.
Steps to Reproduce, Sample code:
Expected Behavior
ff side effect=()
fff side effect=()
Actual Behavior
ff side effect=(1 2 3 4 5)
fff side effect=()
Environment
Tried this in two versions of Raku
The text was updated successfully, but these errors were encountered: