Review: Recursion via Pascal
I did not expect to enjoy Recursion via Pascal by J.S. Rohl this much. The text is concise and the code implementations are succinct (I’m looking at you, Introduction to Recursive Programming). The content strikes a fine balance between theory, analysis, and implementation.
Reading this book made me fall in love with Pascal again. I see now how Pascal influenced Go. The way code is written is beautiful and elegant. Fifteen years ago, I did not appreciate such beauty. But after a decade working with other languages, I am fond of it again. In fact, this book makes me want to give Nim another try. I see Nim as a lovely child of Python and Pascal.
One aspect I particularly enjoyed: the classic method of analyzing complexity by counting each instruction’s cost. This approach reveals performance subtleties that asymptotic analysis glosses over.
The last chapter on eliminating recursion is a treat. Not many textbooks, as far as I have read, touch the subject this deeply.
Verdict: Highly recommended. 4.5/5. It is classic, it is fun, and it will improve your problem-solving skills.