CSE 320: Programming Languages @ CSU, San Bernardino

Go back to home page

Control Flow Ⅱ

Required Reading

  1. Read chapter 14 of PLAI again. It is highly recommend to do the exercises in the book.

The focus in this reading should be on the following concepts:

  • What is a generator?
  • What is the relationship between continuations and the program stack?
  • What are tail calls?
  • How do continuations relate to exceptions?
  • What are cooperative and preemptive multitasking?

Optional Reading

  1. Reread “By example: Continuation-passing style in JavaScript” by Matthew Might.

Advanced Reading

Nothing this time.