I found a trap recently where rakudo gave no warning:
for 5..2 {
say $_
}
The loop is not entered because the range returns zero somehow. The proper
way to get the desired reverse iteration is to use the sequence operator (three dots):
for 5...2 {
say $_
}
It would be great if someday Perl6::Tidy could catch such an apparent error.
I found a trap recently where rakudo gave no warning:
The loop is not entered because the range returns zero somehow. The proper way to get the desired reverse iteration is to use the sequence operator (three dots):
It would be great if someday Perl6::Tidy could catch such an apparent error.
Thanks for creating this project.