hey guys, just wanted an opinion on how to set two...
# codingconventions
r
hey guys, just wanted an opinion on how to set two variables at once given a condition. I came up with this, looking for some feedback
Copy code
val lat: Double; val lng: Double;
when(someEnum) {
    case1 -> { lat = trip.startLatitude; lng = trip.startLongitude; }
    case2 -> { lat = trip.endLatitude; lng = trip.endLongitude; }
}