develooper Front page | perl.perl5.porters | Postings from January 2017

Re: Should we consider locked hashes a failed experiment?

Thread Previous | Thread Next
From:
Eric Wong
Date:
January 31, 2017 20:02
Subject:
Re: Should we consider locked hashes a failed experiment?
Message ID:
20170131195529.GA28660@dcvr
Sawyer X <xsawyerx@gmail.com> wrote:
> On 01/30/2017 08:47 PM, demerphq wrote:
> >
> > FWIW, I don't think I have ever seen anyone write
> >
> > my Foo $foo= Foo->new();
> >
> > in the wild. No doubt they do somewhere, but not in any code I have
> > looked at. And if you omit the "Foo" from "my Foo" (an easy mistake
> > IMO) then the compile time checks go away as well, and fields.pm
> > becomes completely run-time.
> 
> Perlbal uses it.

Yep, inherited from Danga::Socket and also used by MogileFS
as a result.

Being late to MogileFS and not speaking for the original D::S
implementers; I guess 'fields' was intended to be a speed and
space optimization in the 5.8 days which now backfires on
newer Perls.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About