<div dir="ltr">For what it's worth, you can drop the "get" part for read-only computed properties and write:<div><br></div><div> var session: AVCaptureSession { return layer.session }</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 7, 2017 at 7:07 AM James Valaitis via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it widely agreed that it is necessary to require a return statement on a one line property getter?<br>
<br>
var session: AVCaptureSession { get { return layer.session } }<br>
<br>
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.<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div></div></div>