revisiting shift

2010-04-27 Thread David Herman
One of the semantics I suggested and then dismissed for single-frame continuations was based directly on the operators shift and reset from the PL research literature.[1] To my eye, when we dressed them up to look like a function call (with -), they suggested that we were calling a function in

Re: revisiting shift

2010-04-27 Thread David Herman
Also notice that, unlike JS 1.7 yield, a function that uses shift is not special in that it doesn't immediately suspend its body when you first call it. But because it's a syntactic operator, it's more manageable for implementors of high-performance ES engines, since they can trivially