Skip to content

How to handle Perl-like $_ semantics in RakuAST? #524

Description

@lizmat

When I first started working on the P5 modules, the topic variable $_ was still marked as dynamic. This allowed e.g. chomp to work with Perl semantics:

multi sub chomp() { chomp CALLERS::<$_> }

In 6.d this was no longer true, which broke a lot of the P5 modules. Fortunately, jnth at the time put in a hack that allowed the P5 modules to continue to function.

However, in RakuAST we probably would not want to put in a similar hack, but instead need a more generic approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageChanges to the Raku Programming Language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions