Continuation-passing style (CPS) originated as a style of programming in the 1970s, and it rose to prominence as an intermediate representation for compilers of advanced programming languages in the 1980s and 1990s. It's now being rediscovered as a style of programming for non-blocking (usually distributed) systems. There's a warm spot in my heart for CPS, because it was the secret weapon in my Ph