[swift-evolution] Proposal: Add generator functions to the language

Jordan Rose jordan_rose at apple.com
Fri Dec 11 20:14:44 CST 2015

It's desireable for the signature of a function to be fully checkable without looking at the body, for a number of reasons. It's also something clients of a library will want to know, so it needs to be displayed in the library's interface somehow.


> On Dec 11, 2015, at 18:03 , Andrey Tarantsov via swift-evolution <swift-evolution at swift.org> wrote:
> Do we actually need the "generator" keyword? Why can't the compiler figure it out by the presence of yield?
> And "yield" is a fairly standard keyword across languages, so no harm in claiming it, IMO.
> +1 on the proposal.
> A.
> _______________________________________________
> 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/20151211/8adffa5c/attachment.html>

More information about the swift-evolution mailing list