He didn't list many arguments

He mentions there are arguments for both ways ("I don't find it hard to imagine cases where either result would be preferred."), but they're not listed.

So your POW is that the standard behavior is wrong

My POV is:

Without really understanding the opcode-level I'm wondering why you say that either behaviors are difficult to implement if both already exist.

There's no denying the current implementation isn't sane.

Hash key vivification has similar problems.

sub {}->( $h{x} ) # Doesn't vivify sub {}->( @h{x} ) # vivifies for ( $h{x} ) { } # vivifies for ( @h{x} ) { } # vivifies \$h{x} # vivifies \@h{x} # vivifies

In both case, it's more a question of time than difficulty.

IMHO there should always be a configurable (i.e. switchable) warning because different people expect different behavior.

I don't see a point to a switch whose sole purpose is to break working code.

No argument or example was given to indicate there is another purpose. There probably are some, and I would love to hear them. Until then, the switch makes no sense.


In reply to Re^11: ref to read-only alias ... why? (notabug) by ikegami
in thread ref to read-only alias ... why? by dk

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.