develooper Front page | perl.perl6.users | Postings from November 2020

Re: The ,= operator

Thread Previous | Thread Next
Joseph Brenner
November 29, 2020 16:55
Re: The ,= operator
Message ID:
 Ralph Mellor <> wrote:
>> > @r = @r , 'd';
>> Okay, that makes sense.  So the circular reference I thought I
>> was seeing is really there, and it's working as designed.
>> There isn't anything very useful in this behavior though, is there?
> Yes.
> Here are some relevant results from a search for "self referential" in
> the #perl6 and #raku logs.

Just to be clear, I wasn't saying I didn't think circular references
should be forbidden, I just specifically meant that you weren't likely
to want the ",=" operator to create them.

But then really, I'm not too likely  ",=" for appending additional
array elements, I'm more likely to reach for .push.

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