known bug that is [swift-evolution] Allowing guard let self = self else { ... }
for weakly captured self in a closure. in previous version of swift 4.2
Backquotes are for forming a name that happens to overlap with a keyword.
In the case of self
, this could be because you want to refer to the NSObject.self
method for some reason.
Backquotes are not a way to name self, init, subscript or any of the other declarations that look like magic identifiers.
백쿼츠 키워드는 시스템 예약어와 겹치는 이름을 사용하기 위한것, guard let
self
= self else { return } 에 옵셔널 값을 할당하기 위해 사용하는게 아님.. 근데 Swift 4.2 이전 버전에서는 이유는 모르지만 동작함, Swift4.2에서도 동작함.. 컴파일 버그가 고쳐진것인지는 모르겠음.