File tree 1 file changed +2
-3
lines changed
docs/docs/reference/other-new-features
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ layout: doc-page
3
3
title : Optional Braces
4
4
---
5
5
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:
9
7
10
8
- First, some badly indented programs are flagged with warnings.
11
9
- Second, some occurrences of braces ` {...} ` are made optional. Generally, the rule
12
10
is that adding a pair of optional braces will not change the meaning of a well-indented program.
13
11
12
+ These changescan can be turned off with the compiler flag ` -noindent ` .
14
13
### Indentation Rules
15
14
16
15
The compiler enforces two rules for well-indented programs, flagging violations as warnings.
You can’t perform that action at this time.
0 commit comments