[swift-users] Is "lazy let" on the schedule anywhere?

Slava Pestov spestov at apple.com
Mon Jun 26 16:06:00 CDT 2017


If you’re not passing the value type as an inout, how will the ‘lazy let’ property write back the new value?

Slava

> On Jun 26, 2017, at 3:32 PM, Edward Connell via swift-users <swift-users at swift.org> wrote:
> 
> It sure would be nice if the compiler supported lazy lets for structs. Any idea when or if this will be supported? 
> 
> Seems like a nice performance win, lazy var is a pain because you can't access arguments passed into a function without mutation complaints.
> 
> Thanks, Ed
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users



More information about the swift-users mailing list