blackdrag commented on PR #3330:
URL: https://github.com/apache/groovy/pull/3330#issuecomment-7095260318

   @daniellansun consider this:
   ```groovy
   def nestedList1 = [1]
   nestedList1 << [nestedList1]
   
   def nestedList2 = [2]
   nestedList2 << [nestedList2]
   
   def nestedList3 = [3]
   
   def nestedList4 = [nestedList1, nestedList2, nestedList3]
   
   assert nestedList4.toString() == '[[1, [(this Collection)]], [2, [(this 
Collection)]], [3]]'
   nestedList3 << nestedList4
   assert nestedList4.toString() == '[[1, [(this Collection)]], [2, [(this 
Collection)]], [3, (this Collection)]]'
   ```
   Does this kind of output make any sense to you? "this Collection" was kind 
of fine, for when we did try to detect root nested in root. But your new PR 
goes deeper and then "this Collection" is very unclear


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to