Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Add support for _conditional expressions_ #15

@marcaube

Description

@marcaube

In Python, you can write if expressions, in the form of X if condition else Y. It's an expression instead of a statement, because it produces a value. As such, you should be able to use this form of expression anywhere a typical expression can be used, e.g. in a let statement let foo = <if_expression>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerIssue or PR related to the compilerlexerIssue or PR related to lexical analysisparserIssue or PR related to the parser

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions