brianwernick
06/20/2017, 5:57 PMlet
syntax is safer as it correctly handles threading while if(...)
can throw an exception if circumstances are correct. In java-land a similar concept to the let is Resource tempResource = resource; if (tempResource != null) { something(tempResource) }