Skip to content

these are statements, not expressions #54

@ljharb

Description

@ljharb

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Versions

https://github.com/arthurfiorette/proposal-try-expressions?tab=readme-ov-file#rules-for-try-expressions item 1 says they can't be inlined, like return or throw - that makes them statements. If they were expressions, they'd be usable in any context expressions are.

A minimal reproducible example

n/a

Description

n/a

Steps to Reproduce

n/a

Expected Behavior

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions