in reply to (tye)Re: Module Design Review - Exporter::VA
in thread Module Design Review - Exporter::VA
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: Module Design Review - Exporter::VA
by tye (Sage) on Oct 29, 2002 at 16:06 UTC | |
by John M. Dlugosz (Monsignor) on Oct 29, 2002 at 20:40 UTC | |
by John M. Dlugosz (Monsignor) on Oct 29, 2002 at 17:12 UTC | |
by Aristotle (Chancellor) on Oct 29, 2002 at 22:26 UTC |