[swift-evolution] Proposal: Add generator functions to the language
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.
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution