[swift-evolution] [Pitch] make @noescape the default

Chris Lattner clattner at apple.com
Mon Dec 21 18:44:23 CST 2015

> On Dec 20, 2015, at 8:14 AM, ilya via swift-evolution <swift-evolution at swift.org> wrote:
> > If we don’t change the default maybe we should at least add a warning when you *could* add @noescape but didn’t.  A lot of folks are likely to leave it off when they should really be adding it.
> I like this idea. We have a warning for variables that can be made into let, so why not this? 

An opt-in -Woptimization sort of warning (or static analyzer like feature) would be great for suggesting performance hints like this.


More information about the swift-evolution mailing list