Skip to content

Minor correction to Semicolons design note #1193

Open
@mark-summerfield

Description

@mark-summerfield

You say of Go "If a newline appears following one of a handful of token types that are known to potentially end a statement, the newline is treated like a semicolon. Otherwise it is ignored." This may be true, but it is incomplete. For example, Go requires braces in many cases (e.g., for ... {, if ... {) even if the following statement is a single line.

Go eg

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