http://qs1969.pair.com?node_id=624216


in reply to RFC: Alter - Perl extension for Alter Ego Objects

I don't like the name. If you were looking for a module to do this, and you didn't know what it was called, what would you guess its name to be? I suggest Class::AlterEgo or Object::AlterEgo (to go along with Class::Std and Object::InsideOut).

  • Comment on Re: RFC: Alter - Perl extension for Alter Ego Objects

Replies are listed 'Best First'.
Re^2: RFC: Alter - Perl extension for Alter Ego Objects
by Anno (Deacon) on Jun 30, 2007 at 16:50 UTC
    I'm afraid you have a point there (afraid, because last-minute name changes are such a pain). I guess it'll be Object::AlterEgo (not Class::...) because, well, it's the object rather than the class that has an alter ego.

    Anno

      I like the name - Alter. But then, maybe Alter::Ego. I don't believe the Object:: prefix adds much to it, since even so, looking at the name, one would ask "what the heck is Alter?". Seeing the ego method inside the package will give the "Aha!" - effect: so it's about the Alter Ego of an object, which is hidden to the outside! Nice.

      But if you want to give it a "conventional" name - what about Object::Magic? It's that - magic, and relies on extension magic.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re^2: RFC: Alter - Perl extension for Alter Ego Objects
by shmem (Chancellor) on Jul 01, 2007 at 06:07 UTC
    what would you guess its name to be?

    You certainly wouldn't try to find it by guessing its name, but looking it up on CPAN with a few keywords.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}