[Issue 11880] Reserve the keyword "yield"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 3 13:58:37 PST 2014


https://issues.dlang.org/show_bug.cgi?id=11880

--- Comment #6 from bearophile_hugs at eml.cc ---
(In reply to Vladimir Panteleev from comment #2)
> As I understand, "yield" doesn't need to be a keyword - it can be
> implemented as a language construct. The only limitation is that coroutines
> need to be started explicitly (which I think this is a plus as it improves
> readability).
> 
> I suggest closing this as WONTFIX.

Currently std.concurreny.Generator has a not nice usage syntax, it is not
@nogc, not pure, not nothrow, and not safe, and it allocates too much memory,
so it's kind of useless in the functional-style code where it's more useful,
and for recursive generators.

--


More information about the Digitalmars-d-bugs mailing list