http://www.perlmonks.org?node_id=866931


in reply to Creating a Moose object and serializing it

Smells like you're actually after a caching mechanism for is_circular().

How often is circularity likely to change? Maybe you need something like has_been_circular().

If it doesn't change, then just provide separate objects for circles and lines. What is it you're trying to do, anyway?

Cheers,
Matt

Replies are listed 'Best First'.
Re^2: Creating a Moose object and serializing it
by daverave (Scribe) on Oct 23, 2010 at 07:31 UTC
    Circularity never changes. I'm taking a look at `Moose::Manual::Roles` and `MooseX::AbstractFactory` to see if I can perhaps create a single interface with two implementations (sorry for the Java terms).