David Holmes
03/20/2019, 6:26 PMString
and parses it to return some MyDataClass
, is it idiomatic in Kotlin to return MyDataClass?
which is null
if the input String doesn't match the pattern? Or should I use a Result
or throw an exception or something? In this case returning null
would happen "normally" and would not be exceptional in any wayRuckus
03/20/2019, 6:39 PMRuckus
03/20/2019, 6:41 PMDavid Holmes
03/20/2019, 6:50 PMearroyoron
03/20/2019, 7:20 PMRuckus
03/20/2019, 7:23 PMnull
is for.earroyoron
03/20/2019, 7:31 PMRuckus
03/20/2019, 7:49 PM