in reply to Re^8: Informal Poll: Traits (Long Post Warning!)
in thread Informal Poll: why aren't you using traits?

Class::LazyLoad doesn't need to do this. I wonder why you felt that Object::Realize::Later needed to do so.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re^9: Informal Poll: Traits (Long Post Warning!)

Replies are listed 'Best First'.
Re^10: Informal Poll: Traits (Long Post Warning!)
by Corion (Patriarch) on Apr 18, 2006 at 14:05 UTC

    From a look at the documentation, Class::LazyLoad doesn't seem to support classes that implement cheap operations but can become the full fledged object on demand. Which is what Object::Realize::Later does. There are ways around this that don't need reblessing into the full class I guess, like aggregation/creation of a new instance, but reblessing is the easy/safe way. This is discussed in the Traps section of the documentation.

      This is true. C::LL supports non-existence or existence. Apparently, O::R::L supports the intermediate state. Neat!

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?