[Chicago-talk] A question of style: Class::Accessor

Jay Strauss me at heyjay.com
Sun Nov 23 20:59:02 CST 2003


> > Oh, one last thing.  though I'm not a speed freak, it does seem more
> > sensible to do $self->{...}, than doing $self->accessory, while inside
> > the
> > class
>
> Yeah, but I'm a big fan of eating one's own dog food.  If you're
> publishing an API, then you should use it as well.

except, I'm still inside the class.  I'd use the methods, from outside the
class (i.e.
my $obj = class->new();
$obj->method

as opposed to:

$obj->{attribute}






More information about the Chicago-talk mailing list