关闭和"完全关闭"
之间的区别是什么?根据我的理解,闭包可以定义为:
var closure = {
do something here...
}
然后你可以在另一个时间执行关闭......
对于我所知道的完全关闭是你可以做这样的事情......
func someFunctionOverHere() {
doing some things here...
callSomeClosure {
return something // this return in a full closure for what i
understood is that i can exit the function "someFunctionOverHere" directly from this inner closure, is
that right? And if so, its the only difference between a closure and a
full closure?
}
}