Skip to content

Introduce condition expression to IfExpression #855

Closed
@tesuji

Description

@tesuji

The current reference syntax of IfExpression is not clear enough:
image

I had to read more on explanation that:

The form of an if expression is a condition expression, followed by a consequent block, any number of else if conditions and blocks, and an optional trailing else block

So I think introduce a condition expression in syntax might make sense.
Prior art in other languages:

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