The OP is learning from a book, and *intentionally* playing with recursion. The question wasn't "do I have a design flaw?", it was essentially "how do I fix this code I'm toying with to learn?".

It's no different from the question the other day about a beginning Perl developer mucking with the symbol table. Why would someone outright declare that something is a design flaw when the question wasn't about design specifically? Sure, make mention of the potential drawbacks, but to fully claim something is wrong is, well, wrong.

Some of my best software uses weird footguns, and that's because I took the time to educate myself on them early in my path, which led me to understand when they truly are needed and makes them completely shine above and beyond typical idioms.

Lastly, please don't quote me simply to justify your position, especially when you just pluck parts of what I said. I vehemently believe you are wrong in outright claiming that recursion is a design flaw, and I stand by that.

-stevieb


In reply to Re^6: How am i doing? by stevieb
in thread How am i doing? by Anonymous Monk

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.