With SE-0269 we won’t need to use explicit anymore in the below case for reference type.
class Test {
var x = 0
func execute(_ work: @escaping () -> Void) {
work()
}
func method() {
execute { [self] in
x += 1
}
}
}
Will this handle [weak self] and [unowned self] or we should explicitly use in the case of weak and unowned for this proposal.