All this chinese makes me jump in my goalseeking time machine, set the goal for "why did we ever want $, @, %?" and press the start button.

As the smoke clears from the TARDIS console, I find myself somewhere in Bell labs in the late sixties, when, along with hard rock, the unix shell was invented and variable names had to have a different syntax to filenames (a note to myself:nothing to do with reserved words after all).

Pressing the next button jumps me forward twenty years or so, when suddenly Perl is invented and needs to have a syntax for arrays and hashes.

But where is postfix? Not in this causality chain, so I reset the console and land somewhere in Palo Alto instead , where in a parallel Universe, a postfix addict invents Java ('.' instead of '->').

Suddenly, time and space collapse in causality violation and I am left asking myself whether the $ # % was a good idea in the first place.

Given that & is enough to distinguish function calls from variable references, and that the shell doesn't get its hands on the Perl code, it seems to me that maybe Perl could have borrowed this part of the syntax from C instead of shell in the first place? But trying to make Perl look like Java won't help that, in my opinion.

One world, one people


In reply to Re: Experimental features: autoderef vs postfix deref by anonymized user 468275
in thread Experimental features: autoderef vs postfix deref by stevieb

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.