Perl Object Orientation

Requirements

  • notation should be close to standard OO
  • should not reduce execution speed much
  • should allow flexible design
  • should be usable piece by piece (e.g. only attribute accessors)

Candidates

Deficits of Perl5 OO

problem Perl6 Moose Reformed
Attribute Accessors
missing compact 'inherits from' "isa" "<"
usage of "->" instead of "." solved no

Attribute Accessors

  • conveniently via
    • val = obj->attribute
    • obj->attribute = val
    • has overloadable global get/set methods, set('attribute', 'val')
    • has overloadable specific get/set methods, set_attribute('val')

Issues

Type: question (4 matches)

Ticket Summary Owner Status Priority Milestone Component
#7 How do I inherit the member variables (attributes) from another class? new high Lang
#2 Which Perl 5 OO extension can be seen as "standard" (defacto, quasi)? new normal Lang
#6 How do I inherit the methods from another class? new normal Lang
#12 How to keep Documentation close to the Method using POD? new normal Lang