Raku currently equates <alpha> to <:L+[_]>, and <alnum> to <:L+:N+[_]>.
The underscore seems to be included so that <alnum> is the equivalent of \w and that <alpha> is the <digit>-less version thereof.
Nonetheless, this can be confusing for users who expect those named classes to align with their general POSIX definition (even if that is a bit squishy, given it's locale based).
For reference, we do align with POSIX everywhere else, even in that <punct> is defined as <:P+:S>.
Raku currently equates
<alpha>to<:L+[_]>, and<alnum>to<:L+:N+[_]>.The underscore seems to be included so that
<alnum>is the equivalent of\wand that<alpha>is the<digit>-less version thereof.Nonetheless, this can be confusing for users who expect those named classes to align with their general POSIX definition (even if that is a bit squishy, given it's locale based).
For reference, we do align with POSIX everywhere else, even in that
<punct>is defined as<:P+:S>.