in reply to Re: Getting rid of "new" (wrong target; perl6)
in thread Getting rid of "new"
and I'm even optimistic that such could be done for Perl 5. But, for now, a good approach is something like:
That reference constructor there is a nit for me. Why should the user be required to provide it? There is no functional reason that it is needed. The import routine should get an alias to the whatever was passed in so I cant really see a reason for it.
Sorry, but I've encountered this design choice a lot (DBI does it somewhere iirc) and it always kind of irritates me as it seems to me to be so unperlish.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting rid of "new" (superfluous reference constructor)--
by tye (Sage) on Jul 07, 2006 at 15:59 UTC |