[swift-evolution] [Pitch] make @noescape the default
Matthew Johnson
musical.matthew at mac.com
Sat Dec 19 14:10:22 CST 2015
@noescape is safer because it does not require thinking about lifetime issues for captured objects. My hunch was that @noescape (or @autoclosure with implies @noescape) is also more common. I had a look through the standard library and this is definitely the case there.
What does everyone think about making @noescape the default and introducing @escaping (or something similar) to annotate function arguments that do escape the call stack?
Matthew
More information about the swift-evolution
mailing list