Skip to content

Document additional optional braces conditions #12090

Closed
@tgodzik

Description

@tgodzik

Compiler version

3.0.0-RC2

Minimized code

The below examples work with optional braces, but are undocumented, which caused us to skip it while implementing the parser:

  for{ a <- 0 to 11 }
      println(a)
      println(a)
  for( a <- 0 to 11 )
      println(a)
      println(a)
  while( a < 10)
      a += 1
      println(a)

Are we missing anything?

Expectation

We should have optional braces properly documented, otherwise it's hard to build tooling around it, but also it might cause suprises to the users.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions