Re:Learn Kotlin in Y Minutes
by ionforce on Thursday May 18, 2017 @02:34PM
(#14369805)
Is this setting a value to the name `person`? What is the value?
[ Parent
| on HN ]
Re:Learn Kotlin in Y Minutes
by heifer2822 on Friday May 19, 2017 @04:51AM
(#14373874)
selection?.organization?.owner is an optional value, meaning it might be nil/null. That "if let" basically says if it's not nil to assign its value to "person" and execute the block. Then inside the block you can treat "person" as a non-optional, known value.