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

Re: experimental: "our $attribute :unique"

Thread Previous
From:
Elizabeth Mattijsen
Date:
June 14, 2013 08:24
Subject:
Re: experimental: "our $attribute :unique"
Message ID:
3F47414B-6C8A-4317-8726-F633D99ABCE5@dijkmat.nl
On Jun 14, 2013, at 4:12 AM, Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote:
> "our" variables, in 5.8, could start taking a ":unique" attribute for use with
> data sharing between threads.
> 
> This was made into a no-op in 5.10 and deprecated in 5.12 (perlexperiment's
> claims to the contrary).  I made a branch, rjbs/not-unique, in which to finally
> remove any reference to the attribute from core.  It will require synchronizing
> with the threads dist.
> 
> 1) Do we want to do this, or are we holding hope for the restorating of some
>   way to restore this attribute?

Afaik, that never really worked and only caused confusion.  For sharing data between threads, you need the :shared attribute anyway.  It always felt as an premature micro-optimization, much like the "register" prefix was in C.



Liz


Thread Previous


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