kodecocodes/swift-style-guide

About strongSelf

Ricardo1980 opened this issue · 4 comments

I see the guide says:
guard let strongSelf = self else
but I would like to note that this is also possible
guard let `self` = self else
which is the one I use and I think is easier, and access self in the same way than we do.

It would be really nice if this work but it is doesn't. It is actually considered a bug by the core team. (If you search in the issues you can find the reference.)

Really? It is working perfectly in my app.
I will try to find that.
If someone has a link, please...

@Ricardo1980 Yup, there's already been two issues asking about this. The original: #259

Thanks a lot. Didn't see that.