[swift-evolution] [Idea] Make lazy an attribute

Антон Жилин antonyzhilin at gmail.com
Mon May 2 15:39:31 CDT 2016

One of proposals that will probably be submitted for Swift 4, will be
Property Behaviors propoal.

It aims to generalize @IBOutlet, @synchronized, @delayedinit, and of
course, @lazy.
(Side note: it would be great if it also included unowned)

Because we aim for less breaking changes in Swift 4, we should prepare
ground for it.
The suggestion is to rename `lazy` to `@lazy`.

Besides the aforementioned reason, I think, lazy really has its place among
It does not change type of property, it just helps to delay side effects of

- Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160502/6b5b2ab7/attachment.html>

More information about the swift-evolution mailing list