You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear that quantifier in a+ % ',' example is applied to delimited items count instead of character class. I had to check Roast test to see that this:
FWIW I agree that this is not a trap, but a simple misunderstanding that should be covered in language/regexes. A trap would be something that makes you think that your code works, but in reality there are edge cases that may lead to disastrous results. We should delete some sections from language/traps that do not match this definition.
https://docs.perl6.org/language/regexes#Modified_quantifier:_%
It's not clear that quantifier in
a+ % ','example is applied to delimited items count instead of character class. I had to check Roast test to see that this:Should be double wrapped like:
I think adding additional more complex example should make it more clear:
And here is the design discussion for reference: https://irclog.perlgeek.de/perl6/2011-09-20#i_4453865
The text was updated successfully, but these errors were encountered: