Skip to content

Including underscore in <alpha> and <alnum> is confusing #509

@alabamenhu

Description

@alabamenhu

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>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageChanges to the Raku Programming Language

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions