Skip to content

Make $ sigil optional for scalar variables in 6.e #508

@lizmat

Description

@lizmat

When people are coming to Raku (and they don't have any Perl background), many of them are put off Raku because of sigils. Reasons:

  • they hate Perl, Perl has sigils, therefore they hate Raku
  • if there is not hate, then sigils are seen as line noise, rather than as helpful in understanding.

For Raku users, especially if they have a Perl background, sigils are natural. So often we (Raku users) cannot imagine sigils being an issue.

Back in 2020, Martin Tourneboeuf (tinmarino) created a slang Slang::Nogil, which never really worked and ultimately bitrotted completely. A new version of Slang::Nogil was created by yours truly, using a Rakudo grammar feature added in 2023.

In Allowing for fewer dollars I describe the reasons for making the $ sigil optional, at least in variable definitions.

The question here is: should this feature become standard in 6.e. And if so, should that include signatures as well (which it currently doesn't).

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