dalexander
02/06/2017, 7:01 PMthrow
work with the rest of the type system is another factor I think. So something like val foo = if(condition) { 1 } else { throw SomeException() }
, satisfies the compiler, rather than having it complain that throw is not an int