Paul Woitaschek
12/21/2020, 11:18 PMian.shaun.thomas
12/21/2020, 11:23 PMBig Chungus
12/22/2020, 12:00 AMPaul Woitaschek
12/22/2020, 12:05 AMOle K. Øverland (Norway)
12/22/2020, 7:48 AMmarstran
12/22/2020, 8:04 AMPaul Woitaschek
12/22/2020, 8:05 AMxetra11
12/22/2020, 8:52 AMPaul Woitaschek
12/22/2020, 8:53 AMMichal Harakal
12/22/2020, 9:08 AMremoved?.let {
}
@xetra11?xetra11
12/22/2020, 9:15 AMPaul Woitaschek
12/22/2020, 9:17 AMBig Chungus
12/22/2020, 9:18 AMxetra11
12/22/2020, 9:22 AMBig Chungus
12/22/2020, 9:24 AMxetra11
12/22/2020, 9:26 AM?
and the whole things I really feel it's nicer. Just my opinion tho.Big Chungus
12/22/2020, 9:30 AMxetra11
12/22/2020, 9:36 AMPaul Woitaschek
12/22/2020, 9:44 AMif (currency != null && rate != null) {
result[currency] = rate
}
Is easier to understand than this:
currency?.let {
rate?.let { rate ->
result[it] = rate
}
}
xetra11
12/22/2020, 2:47 PMnull
since I strip them to be not null as early as possible. In my projects nullable data is mostly coming from perstistence or filesystem layers and I strip them to notnull as soon as I read/query the data. Afterwards I never have to care about null states againgildor
12/24/2020, 1:03 PM