ursus
05/06/2018, 12:11 PMAndreas Sinz
05/06/2018, 12:17 PMursus
05/06/2018, 12:23 PMSiebelsTim
05/06/2018, 12:38 PMif (x != null) x.doSmth()
is not safe, as x could've changed to null in the meantime. let
uses a temporary to guarantee that it is not affected by other threads.ursus
05/06/2018, 12:44 PMAndreas Sinz
05/06/2018, 12:44 PMursus
05/06/2018, 12:45 PMAndreas Sinz
05/06/2018, 12:47 PMlet { }
doesn't replace if
, just use either one of them when its feasibleursus
05/06/2018, 12:48 PM