[swift-evolution] Proposal: Expose getter/setters in the same way as regular methods
2th at gmx.de
Sun Dec 27 04:23:32 CST 2015
> Of course, if you’re worried about the performance costs associated with that extra method call, you might want to include a keyword, such as “observable”, and only generate the method call(s) if that keyword is on the property.
I strongly agree that Swift should have/keep a possibility to create properties with no performance penalty — but I guess comfort is more important, so I'd rather make observable the default and offer a possibility to disable it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution