I applaud you for chapter 13. That's the most cogent explanation of continuations and CPS I read. And I've read several.

In terms of feedback. I think you might reconsider the decision in the final paragraph of 13.2:

This time I haven't bothered to perform all of the possible tail call optimizations,

I think you leave your point unfinished by not showing the full conversion at that point. The first thing I did was attempt to complete the example. It may be that you see that as a good learning experience for the reader, but it took me a couple of attempts to get it right and when what I thought should work didn't after the first couple of attempts, it diluted the wow factor of the chapter to that point.

It left me with the antsy feeling that you avoided showing it because you felt that the full conversion might look too complicated at that stage of the chapter?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re: Another update: "Exploring Programming Language Architecture in Perl" by BrowserUk
in thread Another update: "Exploring Programming Language Architecture in Perl" by billh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.