return when desugaring to closures
dherman at ccs.neu.edu
Thu Aug 21 23:31:51 PDT 2008
> Since generators are shallow, it seems clear that there
> should be some local cps-style transform of generators into the
> remainder of the language. However, it would be a relief to know what
> that cps-style transform actually looks like, and what edge cases it
> has. Anyone care to post a proposal?
Can't be done without defining the entire language in CPS. Yes, it's
shallow, but a captured activation can involve any arbitrary combination
of expressions other than function call.
More information about the Es-discuss