File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
docs/docs/reference/other-new-features Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ layout: doc-page
33title : Optional Braces
44---
55
6- As an experimental feature, Scala 3 enforces some rules on indentation and allows
7- some occurrences of braces ` {...} ` to be optional.
8- It can be turned off with the compiler flag ` -noindent ` .
6+ Scala 3 enforces some rules on indentation and allows some occurrences of braces ` {...} ` to be optional:
97
108- First, some badly indented programs are flagged with warnings.
119- Second, some occurrences of braces ` {...} ` are made optional. Generally, the rule
1210 is that adding a pair of optional braces will not change the meaning of a well-indented program.
1311
12+ These changescan can be turned off with the compiler flag ` -noindent ` .
1413### Indentation Rules
1514
1615The compiler enforces two rules for well-indented programs, flagging violations as warnings.
You can’t perform that action at this time.
0 commit comments