The thing is, programming languages aren't natural languages. With a natural language, there is an assumption of knowledge and comprehension in the listener. With a programming language, there is no such assumption. That's why programming languages are so structured.

To give a very simplistic example, English is a SVO language - the standard sentence is SVO, or Subject-Verb-Object. "The cat sits on the rug." Other languages, however, are different. German is SOV, as are many Latin texts.

This may be my small, caffeine-deprived brain speaking, but I cannot imagine any computer that is able to understand English being able to understand "Strong in the Force he is". (Yoda spoke in OSV.) Or, "He strong in the force is", which is SOV. Humans do it by associating a ridiculously huge amount of contextual information with every single word. (As a tangential subject, this is why the conditional in logic has many issues.)

In addition, computer languages need to be more precise than natural languages, primarily because we can tolerate a little more uncertainty than your average silicon-based lifeform. Can you imagine writing a program for a bank that says "While that amount over there is less than 7ish, get your job done." Yet, humans handle this kind of uncertainty quite nicely all the time.

Sorry bout the rambling ... Labor Day, while neat, sucks on Tuesday.

------
We are the carpenters and bricklayers of the Information Age.

Vote paco for President!


In reply to Perl isn't a natural language, though... by dragonchild
in thread A somewhat whimsical meditation on teaching Perl by premchai21

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, 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:
    & &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.