Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I was going to release a module named "Aliased" which would alias long class names to short ones. However, it's only for OO modules , it sort of alters compile-time behavior so one might think of it as a pragma, and "class" is not a keyword. Thus, I could do this:
My immediate reaction was "no!", we don't want to do that. Then I realized I couldn't think of a reason why. Can you? I certainly don't want to release that and make people mad (though David Wheeler pointed out that "class" doesn't indicate that anything's getting exported to the current namespace). Side note: the "as" key in the import list is important because there's a separate "import" key in case you need to pass args to the module's import() method. X-posted to my use.perl journal and to the module authors mailing list. Cheers, New address of my CGI Course. In reply to Module Naming Dilemma by Ovid
|
|