Skip to content
loading...

re: When to use weak self and why VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I think this is a good explanation of weak self I'd only mention this evolution introduced in 4.2 github.com/apple/swift-evolution/b... so you can...
 

Sounds like a good addition, I didn't add it to avoid confusion (self = self might look weird to folks who are learning about this stuff for the first time). Adding a separate callout might be nice though. Thanks!

 

I guess for the purpose of an article strongSelf can be better as self = self may be confusing to some people as you say.
I've used strongSelf and weakSelf many times in Objective-C and I'm glad it is now possible to just use self in Swift now

code of conduct - report abuse