Jérôme Gully
11/02/2019, 6:24 PMscore.value = (score.value)?.minus(1)
why the parentheses ? isn't the exact same thing that:
score.value = score.value?.minus(1)
(score isn't nullable)Luca Nicoletti
11/02/2019, 6:31 PMscore
is not nullable, and value
is, those 2 are the sameJérôme Gully
11/02/2019, 6:37 PMLuca Nicoletti
11/02/2019, 6:37 PMLuca Nicoletti
11/02/2019, 6:38 PM(val myClass as? MySecondClass)?.secondClassMethod()
Jérôme Gully
11/02/2019, 7:06 PMJérôme Gully
11/02/2019, 7:07 PMLuca Nicoletti
11/02/2019, 7:48 PM