Swift’s @noescape Attribute
While digging into release notes we can see a bunch of clever words:
A new
@noescape
attribute may be used on closure parameters to functions. This indicates that the parameter is only ever called (or passed as an @noescape parameter in a call), which means that it cannot outlive the lifetime of the call. This enables some minor performance optimizations, but more importantly disables theself.
requirement in closure arguments.Lets analyze those smart statements and put it into code so everyone can enjoy it[…]