[swift-evolution] Protocols and var { get }

Frank Ecsedy fecsedy at gmail.com
Fri Jan 29 18:16:23 CST 2016


I posted this on Erica Sadun's website and she suggested I post it here:

So what about protocols requiring ‘var … { get }’ syntax for read only
properties? Is there some sort of underlying reason for this confusing
syntax instead of ‘let …’? Now that Swift allows deferred initialization of
lets does this requirement make sense?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160129/575f3d3a/attachment.html>


More information about the swift-evolution mailing list