I've create initializers when I needed a method that was only called once the object was fully contructed. For example,
my $store = MyStore->new($data);
might prevent MyStore from being subclassable. The alternative would be
my $store = MyStore->new(); $store->load($data);
In reply to Re: Determining what new and init methods do
by ikegami
in thread Determining what new and init methods do
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |