The orElse option in maybeWhen or maybeMap in unions often is not necessary.
Therefore it is only boilerplate code that increases entropy.
I would like to have it removed because it would not decrease experience if its needed every call.
What are your thoughts about that
The orElse is mandatory because of non-nullable types.
Maybe you want a whenOrNull?
Yeah, that would be a compromise.
It would fit my needs very well.
Most helpful comment
The
orElseis mandatory because of non-nullable types.Maybe you want a
whenOrNull?