In Swift, drop the need for the var keyword when declaring a @lazy property
| Originator: | cflesner | ||
| Number: | rdar://17175890 | Date Originated: | 05-Jun-2014 08:55 AM |
| Status: | Open | Resolved: | |
| Product: | Swift | Product Version: | beta 1 |
| Classification: | Enhancement | Reproducible: | N/A |
When declaring an @lazy property in swift you must do so like this: @lazy var myClass = MyClass() I propose that the var keyword be optional in this case since every @lazy property is a var: @lazy myClass = MyClass()
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!