in reply to Re: Object oriented Perl: What's popular?
in thread Object oriented Perl: What's popular?

While Java (et al.)'s "Everything's an object (usually called Object)" state of mind isn't the only option out there, it seems that most people prefer their OO this way, making Moose a good choice, with its "Everything's a Moose::Object" style.

Moose is more than just "Everything's a Moose::Object". We can also do prototype style OO, and if you are so inclined inside-out objects with MooseX::InsideOut. And honestly plain Moose is not nearly as "everything is an object" as when you use Moose::Autobox.

-stvn
  • Comment on Re^2: Object oriented Perl: What's popular?

Replies are listed 'Best First'.
Re^3: Object oriented Perl: What's popular?
by Erez (Priest) on Feb 01, 2008 at 20:36 UTC

    Moose is more than just "Everything's a Moose::Object".

    I was over-symplifying, of course, in the process of trying to cater for the OP's Java-based background.

    We can also do prototype style OO

    Now *that* would be interesting, although the URL you link to seems to be broken.

    Software speaks in tongues of man; I debug, therefore I code.
    Stop saying 'script'. Stop saying 'line-noise'.

      We can also do prototype style OO

      Now *that* would be interesting, although the URL you link to seems to be broken.

      Sorry, link fixed. It is actually to a test script from the Moose distro. I had been talking to merlyn (who is apparently a big fan of prototype based OO) and he was asking of Moose could be made to do it. Of course, its not *really* a pure prototype based OO, but a thin prototype-ish layer over the class based system Moose uses, and implemented using metaclasses. It's fairly complete, so it probably could be made for real-world use, but I don't have the need or desire to do so, it was just fun to write :)

      -stvn
Re^3: Object oriented Perl: What's popular?
by Anonymous Monk on Feb 01, 2008 at 20:23 UTC
    Moose is gamey