Wednesday, July 2, 2003

CPS and Tail Calls

Dan Sugalski:

In a traditional calling scheme, where stuff goes onto and off of a stack, implementing tail calls can be a bit of a pain. Not a huge pain, mind, but a bit of one, as you have to screw around with the stack some, which is often awkward, painful, or just annoying. I hate complex stack manipulation. Fooey. However… If, rather than using a stack calling system you use a CPS system instead, almost all of the pain goes away, which is always nice.

Comments RSS · Twitter

Leave a Comment