[swift-evolution] [Pitch] make @noescape the default
matthew at anandabits.com
Mon Dec 21 19:50:32 CST 2015
Sent from my iPad
> On Dec 21, 2015, at 6:44 PM, Chris Lattner <clattner at apple.com> wrote:
>>> 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.
So this turned out to be a bad idea, but at least it turned up a good one during discussion! :) I would love -Woptimization.
More information about the swift-evolution