[swift-evolution] [Proposal] Change guarantee for GeneratorType.next() to always return nil past end

Dmitri Gribenko gribozavr at gmail.com
Tue Mar 8 18:47:11 CST 2016

On Tue, Mar 8, 2016 at 2:52 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> On Mar 8, 2016, at 11:38, Dmitri Gribenko via swift-evolution
> <swift-evolution at swift.org> wrote:
> This is a current limitation of the compiler.  The resilience effort
> should make the specialization available for user-defined modules.
> Thus, I don't think it makes sense to factor in the current limitation
> into a long-term decision.
> That's not really true; in fact I'd say it's the opposite. Any library
> that's not shipped with the app has the freedom to change its generator
> implementation in the future, and therefore you'll get even fewer guarantees
> about the generator than you have today.

What I meant is that we would allow user-defined modules to opt into
specialization.  Currently it is not possible for user-defined modules
at all.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-evolution mailing list