in reply to Seeking inside-out object implementations
Serialization via Data::Dumper or Storable seems to be the Achilles Heel of all of the inside-out implementations. It seems to me to be a Very Bad Thing(TM) that, by default, including a reference to almost any inside-out object in a larger data structure results in a data structure that cannot be serialized. And, of course, fixing that would require making it possible to break encapsulation via manipulation of the serialized instance - thus defeating the raison d'être of inside-out objects.
I also severely dislike the use of 'lexical globals' inherent in them. It makes anything using them difficult to make completely thread-safe.
In the quest for encapsulation enforcement, they may be throwing the baby out with the bathwater.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Seeking inside-out object implementations
by revdiablo (Prior) on Dec 06, 2005 at 21:27 UTC | |
by perrin (Chancellor) on Dec 06, 2005 at 21:44 UTC | |
by herveus (Prior) on Dec 08, 2005 at 15:57 UTC | |
by revdiablo (Prior) on Dec 07, 2005 at 00:24 UTC | |
by perrin (Chancellor) on Dec 07, 2005 at 17:31 UTC | |
|
Re^2: Seeking inside-out object implementations
by Perl Mouse (Chaplain) on Dec 07, 2005 at 00:10 UTC | |
|
Re^2: Seeking inside-out object implementations
by jdhedden (Deacon) on Dec 09, 2005 at 18:03 UTC |