Re: [Catalyst] ActionClass vs. Moose Role?

2009-09-02 Thread Tomas Doran
On 28 Aug 2009, at 19:05, Bill Moseley wrote: Well, if you were going to write something like RenderView now would you still write it as an ActionClass? Yes, as Render view isn't something I would ever want two of them on the same action. As a counter example, Catalyst::ActionRole::ACL

[Catalyst] ActionClass vs. Moose Role?

2009-08-28 Thread Bill Moseley
I was starting to implement a custom ActionClass (similar to RenderView) and then wondered if it would be better written as a Moose role. Is there a reason to use one over another? Last I looked, an action is limited to a single ActionClass (although it's easy to deal with that), but depending on

Re: [Catalyst] ActionClass vs. Moose Role?

2009-08-28 Thread Tomas Doran
On 28 Aug 2009, at 18:25, Bill Moseley wrote: I was starting to implement a custom ActionClass (similar to RenderView) and then wondered if it would be better written as a Moose role. Maybe - depends what you're doing. They're doing different things really, and I'd need more details to

Re: [Catalyst] ActionClass vs. Moose Role?

2009-08-28 Thread Bill Moseley
On Fri, Aug 28, 2009 at 10:29 AM, Tomas Doran bobtf...@bobtfish.net wrote: On 28 Aug 2009, at 18:25, Bill Moseley wrote: I was starting to implement a custom ActionClass (similar to RenderView) and then wondered if it would be better written as a Moose role. Maybe - depends what you're