develooper Front page | perl.perl5.porters | Postings from March 2011

Re: Revising Perl's OO docs - a new OO tutorial

Thread Previous | Thread Next
From:
Chris Prather
Date:
March 7, 2011 12:36
Subject:
Re: Revising Perl's OO docs - a new OO tutorial
Message ID:
AANLkTinortsnyCuN81tbhauSS6FE4gyj3=uRrEH2j57Y@mail.gmail.com
On Mon, Mar 7, 2011 at 3:27 PM, Abigail <abigail@abigail.be> wrote:

> Unfortunally, that's how many people see objects: a bag of attributes. And
> that's the motivation for at least half the "OO frameworks" out there,
> "to save typing on when creating accessors".

It's also the reason that until Moose I hand rolled my classes.

> IMO, Perl already has an excellent datastructure to handle bags of
> variables/attributes. It's called a hash.

I fully agree.

-Chris

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About