[Catalyst] External plugins (continued)

Ovid publiustemp-catalyst at yahoo.com
Fri Feb 17 23:13:53 CET 2006


--- "Christopher H. Laco" <claco at chrislaco.com> wrote:

> Brandon Black wrote:
> > Then we can do "use Catalyst qw/ StaticSimple DoTheDishes
> > +Foo::Bar/;", and it will find Catalyst::Plugin::StaticSimple,
> > MyApp::Plugin::DoTheDishes, and Foo::Bar.
> > 
> > -- Brandon
> 
> And is +Foo::Bar  really MyApp::Plugin::Foo::Bar?
> What about the people who want +Foo::Bar to really load Foo::Bar ?

Class XP principle:  do the simplest thing which can possibly work.

Right now, having the unary plus means "take this literally".  Trying
to overload it into meaning "take this literally unless I don't mean
take it literally in which case search some directories" is not good.

While I do like this:

  MyApp/Model
  MyApp/View
  MyApp/Controller
  MyApp/Plugin

In reality, I think the latter one should be explicitly declared:

 use Catalyst qw(
   DateTime
   +MyApp::Plugin::DoesTheDishes
 );

Why?  Because it solves the problem and it's really simple to
implement.

Simplicity++
Bugs--

Cheers,
Ovid

-- 
If this message is a response to a question on a mailing list, please send follow up questions to the list.

Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/



More information about the Catalyst mailing list