Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Of course the C-style and csh-style forms are fundamentally different. No one was arguing against that.

The "obscure implementation distinction" to which I referred is one that javafan pointed out in Re^2: For vs. Foreach. Beyond that obscure, and as far as I can tell useless, implementation distinction, the keywords for & foreach are interchangeable, and can both be used to construct either form--C-style or csh-style--of loop.

Your unilateral decision to use the keyword for to refer exclusively to the C-style form, and foreach to refer to the csh-style form, (and to consider the alternate uses as "misspellings"), is arbitrary and capricious, and does not succeed in "keep[ing] it simple for people using the shorthand "for" vs "foreach".".

Given the prevalence of available code that uses either keyword for either form of loop, it will just further confuse things. Far better to just say it like it is, for & foreach are synonyms and either can be used to construct either of two forms of loop.

There is a good argument that the keywords should have been dedicated one to each of the two forms, along the lines which you favour, and were we at the point where that decision was being made, I would have backed you in that argument. But that time has long gone.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^7: For vs. Foreach by BrowserUk
in thread For vs. Foreach by mattford63

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, 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, 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.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others wandering the Monastery: (6)
    As of 2021-01-28 15:24 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Notices?