Front page | perl.module-authors |
Postings from October 2007
Re: RFC: relative.pm
Thread Previous
|
Thread Next
From:
Andy Armstrong
Date:
October 6, 2007 03:25
Subject:
Re: RFC: relative.pm
Message ID:
635A77D9-1C79-4A29-B1FF-56D0EA626B24@rciss.us
On 6 Oct 2007, at 11:17, Sébastien Aperghis-Tramoni wrote:
>> I like the idea. Catalyst privately invents something like that,
>> so obviously there are other people who feel the same need.
>
> Yes, POE also provide a similar mechanism, that's why I was
> thinking to provide a generic module to do that.
>
>> But I like neither the name nor the interface. How about this:
>>
>> package BigApp::Report;
>> use subclass qw(..::Utils Create Publish);
>> # loads BigApp::Utils, BigApp::Report::Create,
>> BigApp::Report::Publish
>
> "subclass" would imply more OO semantic than I'd like, as the
> module just loads others modules, but I agree it's a better name
> than "relative" and I can't find a better one.
> Also agreeing for the API change. I know I was pondering about
> using ".." but can't remember why I didn't.
Would it also do
use relative [to => 'My::Big::Namespace'] => qw( This That
Munger::Fast Munger::Precise );
?
--
Andy Armstrong, Hexten
Thread Previous
|
Thread Next