|P is for Practical|
Python OO v Mooseby Ea (Hermit)
|on Feb 06, 2013 at 11:23 UTC||Need Help??|
With all the hype being thrown about Python v Perl and my own baby steps into Moose, I thought I'd have a quick look at how the other side does it and found both quite comparable. Not knowing any Python, I grabbed some code from a tutorial page and tried to implement the same 2 attribute, 1 method class in Moose.
For those who like their statistics simplistic:
Rather than seeking approval from any self-appointed echo chamber, I'm wondering if there are any here with the Python chops to tell me that I've created a straw man (like missing out the call to __PACKAGE__->meta->make_immutable;) or that there's a Python feature specific to OO that they really wish was in Moose or implemented more naturally.
I'm not trying to get anyone's back up, just meditating on how to make the comparison fair.
Sometimes I can think of 6 impossible LDAP attributes before breakfast.