thhh
04/10/2021, 3:11 PMit
is always not null."
The text in quotation was in response to:
What is actually the difference and what is the preferred to use:
Case 1:
variable?.let { //... }
Case 2:
if (variable != null) { //... }
ephemient
04/10/2021, 3:16 PMephemient
04/10/2021, 3:17 PMthhh
04/10/2021, 3:26 PMnanodeath
04/10/2021, 3:32 PMvariable
is a field, you can imagine another thread calling setVariable
ephemient
04/10/2021, 3:48 PMephemient
04/10/2021, 3:53 PMephemient
04/10/2021, 3:54 PMthhh
04/10/2021, 4:29 PM