Skip to content

Logical Operators and Assignment Expressions: #133

@thekid

Description

@thekid

Add ||= and &&= operators accompanying the ??= operator:

$a ||= $b; // equivalent of $a || ($a= $b);
$a &&= $b; // equivalent of $a && ($a= $b);
$a ??= $b; // equivalent of $a ?? ($a= $b); - EXISTS in PHP!

https://github.com/tc39/proposal-logical-assignment
dotnet/csharplang#1718

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions