Katarzyna
10/19/2022, 9:17 AModay
10/19/2022, 9:50 AModay
10/19/2022, 9:50 AMmagnumrocha
10/19/2022, 10:31 AMMR3Y
10/19/2022, 10:32 AMnull
over Result
when you have exactly one reason to fail such as most stdlib extension functions (firstOrNull
, getOrNull
...etc), either the item is there in the collection or not there, there is no third possibility.
But, when you've possibly multiple sources of errors, you should go with Result
optionKatarzyna
10/19/2022, 10:42 AMKatarzyna
10/19/2022, 10:43 AMmarcinmoskala
10/19/2022, 12:45 PMPablichjenkov
10/19/2022, 10:58 PMKatarzyna
10/24/2022, 8:17 AMmarcinmoskala
10/24/2022, 10:37 AM