[swift-evolution] Property Getter Return Statement

Charles Srstka cocoadev at charlessoft.com
Sun Oct 8 23:56:02 CDT 2017


> On Oct 7, 2017, at 12:22 PM, Tony Allevato via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I think the important thing to consider is, what advantage would such a feature provide *other* than to reduce keystrokes? (I don't personally think that optimizing for keys pressed by itself should be a goal.)

Consistency? I know I’ve accidentally left out the ‘return’ enough times due to muscle memory from writing closures kicking in, and then had to go back and fix it. Having two different sets of rules for two very similar constructs makes the development process slower.

Charles

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171008/4e36ada1/attachment.html>


More information about the swift-evolution mailing list