Googling for the answer, it seemed some versions of Swift supported setting a 
lazy var property to nil, such that the next time it's accessed, the 
initializer would be run again.

But I just tried this in a playground in Swift 4 and it doesn't work.

It sure seems to me like it should work. What's the reasoning for the current 
behavior?

-- 
Rick Mann
rm...@latencyzero.com


_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to