[swift-evolution] [Proposal] Property behaviors
Brent Royal-Gordon
brent at architechies.com
Tue Dec 22 22:42:33 CST 2015
> You shouldn’t have to say myProperty.lazy.backingStore.clear(), just myProperty.lazy.clear().
>
> I don’t know where that leaves us :-)
I wonder if these should all just be flattened into the instance that owns the property. So instead of saying foo.myProperty.lazy.clear(), you just say foo.clearMyProperty() or some such. That approach isn't very principled, but it *is* very convenient.
--
Brent Royal-Gordon
Architechies
More information about the swift-evolution
mailing list