On Mon, Aug 23, 2004 at 12:53:04PM -0400, Aaron Sherman wrote:
> I was thinking about the case where you use a module, only to define a
> class that you then instantiate like this:
> 
>       use Some::Module::That::Defines::A::Class;
>       our Some::Module::That::Defines::A::Class $foo := new;
> 
> and I keep thinking that that's too redundant. It's not so much that I
> want to syntax-golf it down, but there's just no reason to throw that
> type around twice, when what you really WANT to say is "that module over
> there is a class, instantiate me one."
> 
> So, I was wondering about a synonym, like:
> 
>       uses Some::Module::That::Defines::A::Class $foo;

How about this?

        my :autouse Some::Module::That::Defines::A::Class $foo;

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to