Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I have been meaning to write this post for a long time. In fact, my motivation for this post started about 6 years ago when I was using a program which converted English descriptions to C language expressions. One interesting thing about this program was the way it required you to write about arrays which was different from the way we would describe them in English. For example in English, we think nothing of saying "bag of potatoes". And then moving on to Perl, we might also think nothing of saying "array of integers" which we might think is equivalent to the Perl sentence:
@int = ( 2 .. 5 ) ;
But this particular converter would balk at you. It would say that it is more precise to say you have an array in which each element is an integer, not an "array of integers".

Stated another way, plurality is implicit in the word "array" or the symbol @ It is redundant to pluralize the name of the array.

Now, for the node that re-stimulated this thought pattern: the title was $functions xor $methods. But let's think: a scalar holds a single value, right? Therefore most people would correct this as

@functions or @methods

But me personally, I would write it as

@function or @method
because the plurality is indicated by the @sign.

update Finally, the way that we modify nouns for plurality is not done in chinese. You figure out that something is plural by the number of them mentioned or by something like Perl's @ sign.


In reply to the "@" indicates plural hence "s" is redundant by princepawn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-25 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found