Hello all,

I am curious as to the current state of thinking regarding the Tie:: namespace.

On the modulelist most ties seem to named 'naturally' according to their function such as

Tie::IxHash or Tie:SubstrHash
Whereas the less natural but more OOish might have been
Tie::Hash::Indexed (Tie::Hash::Ix??) and Tie::Hash::Substr
(personally I might even suggest restructuring the Tie:: namespace into their components and keeping stubs that use the @ISA relationship to refer to the reorganized classes. I _might_ suggest this because as people contribute more and more tie classes the flat nature of the namespace is going to get quite polluted indeed, I *won't* of course because suggesting such a thing would get me lynched...) (Oops! :-)

Now my question is for a new Tie that I am about to submit to cpan should I go along with the former or the later scheme?

FYI: The module I want to submit is a hash implemented using tries, similer to Tree::Trie (actually mine impleements Tree::Trie as well) but with a tie interface as well as an OO interface. So should this be called Tie::TrieHash or Tie::Hash::Trie My personal 'gut' feeling is that the latter makes more sense, but I would appreciate any thoughts on the matter from anyone out there.

Yves

--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)


In reply to How to choose a Tie:: 's name by demerphq

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.