[swift-users] @noescape

Nate Birkholz nbirkholz at gmail.com
Mon May 16 11:37:45 CDT 2016


I understand how @noescape works, and some of its benefits, I *think*, but
if I am correct, it almost seems like it should be added automatically to
my closure definitions until it becomes clear that the closure has to
escape its context, much like I tend to declare variables as `let` until it
becomes clear I need a `var`.

How much are people using @noescape? I'm working on making recommendations
at work on how to make our codebase more idiomatic Swift, but this one
escapes me (har!).

Sorry for the open-ended question, by the way, but this seems like the
better venue fo0r it than others I might try.

-- 
Nate Birkholz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160516/7e6ac0a0/attachment.html>


More information about the swift-users mailing list