The best way to understand continuations

I was reading up about Procs due to an interesting error in some code:
warning: tried to create Proc object without a block

So I picked up my copy (and got a nice little workout in the process) of The Ruby Way, 2nd edition by Hal Fulton. It’s a good book for all Rubists and Railers. It had this nice little gem right before the section on Procs:

The best way to understand continuations is to watch the movie Run, Lola, Run (or the original German Version, Lola Rennt.)

Hal also compares it to a “save game” feature. Probably easier to understand among the video-game-playing-and-computer-programming crowd. Nevertheless, I think its probably still worth it to go watch Run Lola Run to improve your understanding of continuations.

This entry was posted in Rails, Ruby. Bookmark the permalink.

Comments are closed.