I choose Moose for the first edition of the Modern Perl book and am still happy with that. At the time, it was the most complete of all of the object systems. When I was revising that chapter for the 2014 edition, I thought about the decision again and stuck with Moose. It's the de facto standard for syntax among all of the Moosey alternatives. It's the basis for p5-mop. It has the most users and documentation. The other strong competitor is Moo, and that automatically upgrades its objects to Moose objects when you exceed the facilities Moo provides.

Another consideration—strictly from the writer's point of view—is that I didn't have to tell people to install something else to get the metaprogramming examples to run correctly.

I decided that a novice wouldn't go wrong learning Moose, because that novice could decide to switch to something else when he or she knew enough to make an informed decision. Even though I'm enjoying Moops in my personal projects right now, I'm not the target audience.


In reply to Re^4: Class confusion when testing using ref() by chromatic
in thread Class confusion when testing using ref() by atcroft

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.