which style is preferred when the function declara...
# announcements
r
which style is preferred when the function declaration is too long? A
Copy code
fun fooIsInsideOfClass(bar: Int) = when(bar) {
  0 -> blah
  1 -> ads
  else -> adsffd
}
B
Copy code
fun fooIsInsideOfClass(bar: Int) = 
  when(bar) {
    0 -> blah
    1 -> ads
    else -> adsffd
  }
C
Copy code
fun fooIsInsideOfClass(bar: Int) 
  = when(bar) {
        0 -> blah
        1 -> ads
        else -> adsffd
      }