Re:The general value of typed functional programming lies in...
by dangets on Monday February 24, 2020 @03:46PM
(#22408253)
Kotlin will do exhaustive checks in a `when` block when it is an expression. You can add a `.let { }` at the end of the when statement if you want to enforce this and not really return anything.
[ Parent
| on HN ]
Re:The general value of typed functional programming lies in...
by still_grokking on Monday February 24, 2020 @05:14PM
(#22409013)
Sure. But that doesn't look helpful to me as it works only sometimes…
Even the syntax can be made less awkward[1] this look still like a wonky hack to me where the user can do way to much wrong.
[1] https://proandroiddev.com/til-when-is-when-exhaustive-31d69f...