develooper Front page | perl.perl5.porters | Postings from June 2015

Re: extraneous autovivification (foreach (@$x), keys(%$x), ...)

Thread Previous | Thread Next
Aristotle Pagaltzis
June 30, 2015 21:16
Re: extraneous autovivification (foreach (@$x), keys(%$x), ...)
Message ID:
* Paul Johnson <> [2015-06-30 22:05]:
> I also wonder whether this could ever be fixed.

I wish we would give it a try. I’ll be damned if I can find the citation
now, but I distinctly remember that Larry himself, when asked about this
issue, said that autovivification of intermediate references in rvalue
context was not by design. I.e. it is an accident of the implementation,
and undesirable at that.

Maybe we cannot change that now. And if we cannot change it, we cannot
change it. But I wish we *knew* that, for having tried it – instead of
just forever wondering.

And maybe we would instead find that we can.

Aristotle Pagaltzis // <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About