Ralph Mellor <ralphdjmel...@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.