Skip to content

Improve grammar of block expressions #1533

Open
@traviscross

Description

@traviscross

At some point, we may want to improve the grammar for blocks.

The way that rustc works is that a block is a sequence of statements. It's probably clearer to do something like that here. Then we can just say that "all expressions are statements" and that "a block is a sequence of statements that are delimited by semicolons with an optional trailing semicolon" or something to that effect.

But, of course, we should beware of:

cc @ehuss

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: Syntax and parsing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions