in reply to RFC - Tie::Hash::Ranked

Hm, well I would have a use for something like this. I'd love to be able to manipulate hashes like this through a standardized API. In fact, I already use Tie::Hash::Sorted for some things.

In terms of suggestions... why not make your module a wrapper-replacement for Tie::Hash::Sorted? Import all of its methods, and extend it with your ranking items (and some of the stuff you suggested in your new features list. Call the new module Tie::Hash::Sorted::Rank or something.

Most importantly, keep the interface consistent with Tie::Hash::Sorted so that new users of your module will not need to relearn anything.

radiantmatrix
require General::Disclaimer;

Replies are listed 'Best First'.
Re^2: RFC - Tie::Hash::Ranked
by Limbic~Region (Chancellor) on Oct 12, 2004 at 16:41 UTC
    radiantmatrix,
    Provided a did a good job (it was my first real OO project), I intend to subclass Tie::Hash::Sorted. I am not sure if this will be possible without doing some re-writing. Given that it is only my intention and that I follow the path of least resistence, I figured I was safe saying it would be based on Tie::Hash::Sorted without promising it as a subclass.

    Cheers - L~R