I'm thankful for the suggestions on KeysKeyed, ValuesKeyed, and PairsKeyed. After playing around with this, am realizing that is rather difficult actually. The reason is that keys, values, and pairs are also used by MCE::Shared.

Another option is naming them as KeysInd( indices ), ValuesInd( indices ), and PairsInd( indices ) along with Keys( keys ), Values( keys ), and Pairs( keys ). This will break API compatibility with Tie::IxHash and fine with that.

MCE::Shared::Hash by itself (in MCE::Shared::Client) is not ordered. Thus, is without indices behind the scene. Having the shorter names is nice in that sense. At the very least, am wanting for Keys, Values, and Pairs to match between MCE::OrdHash and MCE::Shared::Hash even if it means breaking API compatibility with Tie::IxHash.

In summary, I agree with GrandFather and now dislike Keys / keys, Values / values, Pairs / pairs with the change in case being too subtle for passing indices or keys. But, KeysKeyed, ValuesKeyed, and PairsKeys seems unnecessary for MCE::Shared::Hash which is without indices.

After reviewing everything, the least common denominator is MCE::Shared::Hash. Keys, Values, and Pairs take keys as arguments for not having indices. So, will do the same in MCE::OrdHash and have have KeysInd, ValuesInd, and PairsInd take indices.

Does this sound like a good plan? This will break 100% compatibility with Tie::IxHash, but am wanting to consider MCE::Shared::Hash which is not ordered (without indices).

Thank you, Mario


In reply to Re^4: MCE::OrdHash naming Push and Unshift methods supporting merging and reordering by marioroy
in thread MCE::OrdHash naming Push and Unshift methods supporting merging and reordering by marioroy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.