Re: Trigger before/around/after stuff

[email protected] ("Paul Driver")
Newsgroups perl.moose
Message-ID <[email protected]>
I think the major benefit of the "around" trigger was being able to filter
the value going into the setter.  I don't have any use case for 'before'
that couldn't be accomplished with older "standard" (after) triggers - so
some kind of setter-filter (needs a better name) would probably do just as
well.  That could be done by a MooseX, potentially.

On Mon, Jul 21, 2008 at 8:10 PM, Stevan Little <
[email protected]> wrote:

> Sartak, frodwith,
>
> So I was looking over the trigger before/after/around patches and something
> occurred to me, trigger always expects a fully formed instance (I know all
> my uses do) and with the before/after/around trigger that is just not
> possible, especially for trigger at construction time.
>
> So unfortunately this means we need to remove this patch and rethink this
> feature.
>
> - Stevan
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.