[swift-users] Re-initializing lazy vars
Rick Mann
rmann at latencyzero.com
Thu Oct 19 19:40:37 CDT 2017
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
rmann at latencyzero.com
More information about the swift-users
mailing list