in reply to Re^3: Moose: mutualy exclusive bolean attributes.
in thread Moose: mutualy exclusive bolean attributes.

I guess if I want a setter as well, I can expand those subs to larger ones that read the value of $_[1] as well.

That doesn't make much sense. What would happen for

$self->error(0);

Replies are listed 'Best First'.
Re^5: Moose: mutualy exclusive bolean attributes.
by chrestomanci (Priest) on Dec 26, 2010 at 08:12 UTC

    Change the status to undefined, but it would be better to do $self->pending(1)

      The point was that always expecting the same value for an argument is weird. It could point to a design weakness.