[swift-evolution] Proposal: Expose getter/setters in the same way as regular methods

Tino Heth 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.

Tino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151227/adc73df4/attachment.html>


More information about the swift-evolution mailing list