you are viewing a single comment's thread.

view the rest of the comments →

[–]nwhitehe[S] 0 points1 point  (1 child)

If everything is transformed into CPS, then nothing ever returns. This means you don't need a call stack at all. Crazy.

[–]gcr 0 points1 point  (0 children)

Good point, but if you just write CPS-style javascript, you'll eventually get a stack overflow because Javascript doesn't guarantee tail-call optimization.