Nobody proposed (or expected!) to ever have function signatures for references of references of arrays of int in C either. Y'know it all looked so neat an simple with int foo; and char* bar and real baz[10], except that, well, life was not so simple. Even in the horribly restricted "type system" of C.

What is the difference between a pointer and a reference again? Not much really. A reference must point to something. You can't "typecast" a reference to look at the same memory as if it was a totally different thing. You can't increment a reference to get "the next thing of the same type in memory". And you can't construct a reference out of an integer, an address. None of this is in any way related to function signatures (I don't like that term at all.) or variable types. The optionality of type specifications would make it possible to stop trying to circumvent the misdesigned notation and just leave it untyped. Which would IMHO be a shame.


In reply to Re^9: what would you like to see in perl5.12? by Jenda
in thread what would you like to see in perl5.12? by ysth

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.