Why do generator expressions return generators?
domenic at domenicdenicola.com
Fri Sep 6 09:13:04 PDT 2013
From: Brendan Eich [brendan at mozilla.com]
> In a debugger, I would see extra frames (without the debugger working to merge them to preserve the appearance of a generator with let blocks). Think about nested for-of heads, lifetimes of bindings. You need nested closures in general.
Really? The Firefox and Chrome debuggers, from what I can see, always hide implementation stack frames from us. Are you referring to the C++ debugger you'd use while developing those engines?
More information about the es-discuss