https://kotlinlang.org logo
g

groostav

12/30/2016, 5:14 AM
was there any movement on the
when
syntax updates in kotlin 1.1? I thought I remember seeing
Copy code
when(val something = whatever.propertyOrComputation()){
  is ASomethingType -> something.propFromASomethingType //smart-casted for us
}
👍 1