xenoterracide
05/17/2018, 11:22 PMrocketraman
05/18/2018, 8:19 PMif
function that took a lambda, such that you could call else
on it, but also so that else
was only syntactically valid with a corresponding if
, and also so that the return value of the if-else expression was the type you wanted?
Kotlin is designed to be pragmatic rather than to have some overarching design principle like "everything is lambdas".