Skip to content

Language: match expression (PHP 8) #143

@PurHur

Description

@PurHur

Problem

match ($x) { ... } is not compiled. Routers may use match for clean path dispatch.

Goal

match with literal/int/string arms and default arm (no guard expressions initially).

Tasks

Acceptance

echo match (2) { 1 => 'a', 2 => 'b', default => 'c' }; // b

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions