[swift-evolution] [swift-evolution-announce] [Review] SE-0087: Rename lazy to @lazy

Brent Royal-Gordon brent at architechies.com
Tue May 17 23:14:40 CDT 2016

> 	https://github.com/apple/swift-evolution/blob/master/proposals/0087-lazy-attribute.md

The proposal says this at the beginning:

> Swift's rule for attribues/keywords is that keywords usually modify type of variable; attributes do not.

[citation needed]

As far as I can tell, this is not true at all. Most declaration modifiers do *not* change the type of anything; as far as I can tell, only `mutating`, `nonmutating`, and possibly `optional` do. Meanwhile, several attributes—particularly `@noescape` and `@autoclosure`—*do* change the type. So where is this belief coming from?

Brent Royal-Gordon

More information about the swift-evolution mailing list