Sure. I've used and written such myself. I wrote such code only because I was following the examples given me in the docs. No other reason.
The point is Why? Why do you let users of your package use objects to call constructors? Why do you want to be able to write $obj->new vs Obj->new? What is the benefit of this more complicated and slower code?
In reply to Re: Re: $class = ref $class || $class
by rir
in thread Constructor/Factory Orthodoxy
by mojotoad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |