develooper Front page | perl.perl5.porters | Postings from July 2019

Re: [perl #133809] Perl silently adds a key to hash

Thread Previous | Thread Next
July 13, 2019 12:01
Re: [perl #133809] Perl silently adds a key to hash
Message ID:
On Sat, 13 Jul 2019, 13:40 Leon Timmermans, <> wrote:

> On Sat, Jul 13, 2019 at 12:46 PM demerphq <> wrote:
> >
> > It's the right thing because Larry said it was the right thing. Our
> community depends on this understanding. And we really try to avoid debates
> like this, Larry made a decision decades ago, and it's not subject to
> review or change.

I was speaking to a specific exchange which I believe is still covered by
rule 1.

Arguing that it's not the right decision is imo unhealthy for our
community, arguing that regardless we should support something else as well

> Rule 1 stoped being a useful rule when we lost rule 2.
> I do think it's possible to make this change. I very much think the
> behavior that is being proposed is more intuitive (and tellingly I
> haven't seen anyone argue otherwise). IMO there are three questions
> that are relevant for deciding whether we should do this.
> * What will break?

Who knows? I have seen code that exploits this behaviour. But there is no
way to know until we try it. Doesn't seem to me to be something we can
change without a pragma.

* What does it cost us in complexity?

I doubt that much.

* What does it cost us in performance?

I doubt that much.

> None of those questions (or their answers) involve invoking Larry.

Agreed, but it's a different discussion than the one I responded to.



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