Is it safe to force unwrap variables that have been optionally accessed in the same line of code? – stackoverflow.com

someFunction(completion: { [weak self] in self?.variable = self!.otherVariable }) Is this always safe? I access the optional self in the beginning of the statement, and personally I assume that ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Is it safe to force unwrap variables that have been optionally accessed in the same line of code? – stackoverflow.com"