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

Re: The ,= operator

Thread Previous | Thread Next
From:
Joseph Brenner
Date:
November 29, 2020 16:55
Subject:
Re: The ,= operator
Message ID:
CAFfgvXW8LQztNyWjpwHPpNVCrXD8w-RbwxRJ=p58UAYJLnNx6A@mail.gmail.com
 Ralph Mellor <ralphdjmellor@gmail.com> 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


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