Thanks for your notes!

you need to quote many of your hash keys since things like .foo and &foo are not barewords. Hmm, I guess that's true in general, since the hash keys look exactly like the symbol names! I wonder if that will be a source of annoying user errors, esp. since they may be defined and thus not caught as a warning in the parser!

I wonder, would a different way of specifying these symbol names be better, or is the clarity of just naming them by what they are normally called make it worth using quotes?

I'd allow for callbacks to return undef to indicate that there is nothing to import so that modules can have non-importing options that use plain names.

I originally had that. Someone suggested standardizing on the dash for pragmatic imports. Doing so gives me more error checking. I'm on the fence now about allowing undef where its not expected.

Version strings are going away. You should not be using them in a new module. So that begs several questions (1) if they are going away, what is taking their place? Some class type that has the same feature of relational operators implemented on it? (2) the use MODULE VERSION (LIST) syntax expects a version string. Is that going away too, or will it be improved, or what?

By "going away" do you mean Perl6 or something sooner?

—John


In reply to Re: (tye)Re: Module Design Review - Exporter::VA by John M. Dlugosz
in thread Module Design Review - Exporter::VA by John M. Dlugosz

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.