Skip to content

The underscore function is automatically global #39

Open

Description

@gflohr

All Perl symbols that consist of punctuation only are automatically global. That means that you do not have to export _().

I think that this behavior should at least be documented. And maybe you can think of a better function name so that the global namespace does not get polluted.

If you are searching for another function name, please keep in mind that the double underscore __() is already exported by https://metacpan.org/pod/Locale::TextDomain and in relatively wide use.

Activity

  1. mamod commented on Oct 28, 2018

    @mamod
    Owner

    You're totally right, this was a bad decision, it does not have much use anyway so I'll try to deprecate it or think of a better way, I'll keep this open until I sort this issue

    Thank you for reporting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions