Skip to content

Add ""= #11

@schwern

Description

@schwern

Similar to #10, it has the same rationale but I'm doing this in a separate issue since it requires making up new syntax.

The third common reason to apply a default is for an empty string. ||= can't be used because "0" would be valid. ""= would be equivalent to...

$arg = "default" if !defined($arg) or !length($arg);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions