On Thursday, 26 June 2014 at 19:42:46 UTC, bearophile wrote:
Sean Kelly:I'm pretty biased, but am quite excited about:Mine was only a partial list :-)void main() { auto r = new Generator!string({ yield("the"); yield("quick"); yield("brown"); yield("fox"); });Do you need the "new" there? Is that a heap-allocated class instance? Is that r Generator working at module scope too?
I could hide the "new" somehow, but you're effectively creating a Fiber so allocation has to happen somewhere.
