SirNapkin1334
07/11/2021, 6:17 AMTODO()
and a short explanation of why it's unreachable, but is there a "better" way of doing it?rajesh
07/11/2021, 6:33 AMSirNapkin1334
07/11/2021, 6:36 AMFleshgrinder
07/11/2021, 6:46 AMunreachable
like we have it in Rust and the consensus with the Kotlin devs was that error("unreachable: description")
is good enough. Unlike Rust Kotlin doesn't need it to compile and adding it was perceived as adding unnecessary complexity.ephemient
07/11/2021, 7:12 AMephemient
07/11/2021, 7:12 AMunreachable()
, but they don't exist now (and the plan for exhaustive-when doesn't use it)Sourabh Rawat
07/11/2021, 8:42 AM