Skip to content

Validate an empty argument list #28

@clueless-newbie

Description

@clueless-newbie

Calling a sub that doesn't take arguments with arguments is something gone wrong. Currently validation_for doesn't have a means for saying this sub doesn't take any arguments --- making it necessary to "die q{This sub doesn't take arguments.} if (@_);". If one is using validation_for elsewhere it would be nice to use it in this case too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions