I found myself needing time to think on this one, and I'm glad I took it. After reading this, and all the replies thus far, I also will speak against the use of class in favor of an alternative (which I'll get to in a moment). The reasons:
- I realize that the desire for a succinct name means toplevel is a given, but there is no need, IMHO, for using the all-lower version. Thus, Class would be preferable to class
- But, the word 'Class' has very specific connotations. From a learning point of view, I don't think it is immediately obvious what "use Class" does, and I can see it being confused (by a newbie, for example) with just plain use, and I don't think it makes it sufficiently clear that we using a module named "Class" to do the work.
- What you're really doing is offering the opportunity to use a shorter class name, not use a class in general, as "Class" or "class" would imply.
Considering these things, I think any form of
class would be out. What would I suggest? How about
Shorter? I think it reads well:
use Shorter 'My::Company::Namespace::Customer';
use Shorter 'My::Company::Namespace::Preferred::Customer', as => 'Pref
+erred';
Anima Legato
.oO all things connect through the motion of the mind
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.