Re: inner() not an instance method

2010-06-17 Thread Stevan Little
On Jun 17, 2010, at 7:54 PM, Kate Yoak wrote: I would be interested to see an example of how you would use augment and inner with roles. I could never picture a way to do it in which it didn't seem overly confusing, but I am always willing to admit to my own lack of imagination :) - Steva

Re: inner() not an instance method

2010-06-17 Thread Kate Yoak
> > I would be interested to see an example of how you would use augment and > inner with roles. I could never picture a way to do it in which it didn't > seem overly confusing, but I am always willing to admit to my own lack of > imagination :) > > - Stevan > Cool! I like imaginative. I'l

Re: inner() not an instance method

2010-06-17 Thread Stevan Little
On Jun 17, 2010, at 6:51 PM, Kate Yoak wrote: I finally found a good place to play with inner() and augment. How come inner() is called as a local subroutine instead of an object method? It stands out as a sore thumb and is making me itchy! Because inner, like super, has, extends, with, req

Re: inner() not an instance method

2010-06-17 Thread Kate Yoak
>> I finally found a good place to play with inner() and augment. How come >> inner() is called as a local subroutine instead of an object method? It >> stands out as a sore thumb and is making me itchy! >> > Because inner, like super, has, extends, with, requires, augment, before, > around,

Re: inner() not an instance method

2010-06-17 Thread Shlomi Fish
Hi all, On Thursday 17 Jun 2010 04:18:17 Stevan Little wrote: > On Jun 16, 2010, at 7:14 PM, Kate Yoak wrote: > > On Jun 16, 2010, at 3:57 PM, Karen Etheridge wrote: > >> On Wed, Jun 16, 2010 at 03:28:20PM -0700, Kate Yoak wrote: > >>> I normally do so as early as possible so I could start using >

Re: inner() not an instance method

2010-06-16 Thread Stevan Little
On Jun 16, 2010, at 7:14 PM, Kate Yoak wrote: On Jun 16, 2010, at 3:57 PM, Karen Etheridge wrote: On Wed, Jun 16, 2010 at 03:28:20PM -0700, Kate Yoak wrote: I normally do so as early as possible so I could start using things like Error.pm - and prefer not writing and "real code" with Moo

Re: inner() not an instance method

2010-06-16 Thread Kate Yoak
On Jun 16, 2010, at 3:57 PM, Karen Etheridge wrote: > On Wed, Jun 16, 2010 at 03:28:20PM -0700, Kate Yoak wrote: >> I normally do so as early as possible so I could start using things like >> Error.pm - and prefer not writing and "real code" with Moose namespace still >> on. > > Another orthog

Re: inner() not an instance method

2010-06-16 Thread Karen Etheridge
On Wed, Jun 16, 2010 at 03:28:20PM -0700, Kate Yoak wrote: > I normally do so as early as possible so I could start using things like > Error.pm - and prefer not writing and "real code" with Moose namespace still > on. Another orthogonal comment: Error.pm is evil; don't use it. Try::Tiny or TryC

Re: inner() not an instance method

2010-06-16 Thread Nick Perez
On Wed, 16 Jun 2010 15:41:35 -0700 Kate Yoak wrote: > To avoid the problem, I chose the following principle for module > layout: > > 1. Define attriburtes > 2. Define method modifiers using named subroutine references > 3. Deal with anything else that could possibly need Moose keywords > 4. no M

Re: inner() not an instance method

2010-06-16 Thread Kate Yoak
>> > > You don't; all of the keywords that Moose provides are generated by > Moose::Exporter, so that they are passed the appropriate metaclass > instance. Just move the 'no Moose' later. I'm not sure what you mean by > "with the Moose namespace still on". > > -doy Sorry, that was very awkward

Re: inner() not an instance method

2010-06-16 Thread Shawn M Moore
(6/16/10 6:28 PM), Kate Yoak wrote: >>> >> >> Because inner, like super, has, extends, with, requires, augment, before, >> around, after and override, is a "keyword" and not a method. >> >> > Well, that explains a lot. It also makes my life difficult as such a beast > usually comes up long after

Re: inner() not an instance method

2010-06-16 Thread Jesse Luehrs
On Wed, Jun 16, 2010 at 03:28:20PM -0700, Kate Yoak wrote: > >> > > > > Because inner, like super, has, extends, with, requires, augment, before, > > around, after and override, is a "keyword" and not a method. > > > > > Well, that explains a lot. It also makes my life difficult as such a beas

Re: inner() not an instance method

2010-06-16 Thread Kate Yoak
>> > > Because inner, like super, has, extends, with, requires, augment, before, > around, after and override, is a "keyword" and not a method. > > Well, that explains a lot. It also makes my life difficult as such a beast usually comes up long after I've said no Moose; I normally do so as

Re: inner() not an instance method

2010-06-15 Thread Stevan Little
On Jun 15, 2010, at 10:46 PM, Kate Yoak wrote: Hey guys, I finally found a good place to play with inner() and augment. How come inner() is called as a local subroutine instead of an object method? It stands out as a sore thumb and is making me itchy! "Curiosity killed the cat" :-) Bec

inner() not an instance method

2010-06-15 Thread Kate Yoak
Hey guys, I finally found a good place to play with inner() and augment. How come inner() is called as a local subroutine instead of an object method? It stands out as a sore thumb and is making me itchy! "Curiosity killed the cat" :-)