in reply to Re^4: Making 'all' the attributes read only by default (Moo) (interface)
in thread Making 'all' the attributes read only by default (Moo)
Moose's obsession with attributes seems to be a result of it trying to emulate CLOS. Classes in CLOS are essentially structs that just contain data. The behaviours are defined in multimethods that live outside of classes. Moose doesn't provide the generic function / multimethod part of CLOS, so we're just left with trying to blend the Class-is-a-struct idea into Perl (which I agree is quite a suboptimal blend :)
|
---|