[swift-evolution] Property Getter Return Statement
Goffredo Marocchi
panajev at gmail.com
Thu Oct 12 09:53:04 CDT 2017
Will this finally bring labels back everywhere (closures and stored
functions too)? :D.
On Thu, Oct 12, 2017 at 3:03 PM, Jeremy Pereira via swift-evolution <
swift-evolution at swift.org> wrote:
>
>
> >
> > I’m minorly opposed, because it feels like a slippery slope. What about
> function bodies? etc
> >
> > func foo() -> Int { 3 } // should this be allowed?
>
> Yes, why not? What is fundamentally different about a function body
> compared to a getter body (or a closure body ;-)) that means, if we accept
> it for getters, we should not also accept it for function bodies.
>
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171012/37f6ddf2/attachment.html>
More information about the swift-evolution
mailing list