[swift-evolution] Property Getter Return Statement

James Valaitis jamesvalaitis at me.com
Wed Oct 11 02:49:41 CDT 2017


I am going to try to learn how to implement this and submit a proper proposal.


> On 7 Oct 2017, at 15:07, James Valaitis <jamesvalaitis at me.com> wrote:
> 
> Is it widely agreed that it is necessary to require a return statement on a one line property getter?
> 
> var session: AVCaptureSession { get { return layer.session } }
> 
> Or could we follow the convention for any other close and get rid of it? For me it seems redundant; the word `get` literally precedes the closure.



More information about the swift-evolution mailing list