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

Andrey Tarantsov andrey at tarantsov.com
Fri Dec 11 20:03:23 CST 2015


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.



More information about the swift-evolution mailing list