Is it correct formatting? ``` is String ...
# codingconventions
e
Is it correct formatting?
Copy code
is String
                -> {
                0
            }
I would expect that closing bracket is on the level of arrow and body had indentation from arrow as well.
s
I've never seen a
when
branch with the arrow (
->
) on a new line. I'd expect this:
Copy code
is String -> {
  0
}
If I do put it on a new line, the IDE formats it like this:
Copy code
is String
-> {
  0
}
so the indentation inside the braces remains the same
e
it is an option when you have multiple values in when
Copy code
is A,
is B,
 -> {}
👍 2