Monday, October 26, 2015 [Tweets] [Favorites]

Swift’s @noescape Attribute

Mateusz Matoszko:

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 the self. requirement in closure arguments.

Lets analyze those smart statements and put it into code so everyone can enjoy it[…]

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment