daniellansun commented on PR #2263: URL: https://github.com/apache/groovy/pull/2263#issuecomment-3064680893
> > GQ { > > add: }> from n in [1, 2, 3] > > add: }> innerjoin m in [2, 3, 4] on m = n > > add: }> select m, n > > add: }> } > > You currently have to do: > > ``` > println GQ { > add: }> from n in [1, 2, 3] > add: }> innerjoin m in [2, 3, 4] on m = n > add: }> select m, n > add: }> } > ``` > > or: > > `println _` > > The JLine3 "demo repl" which this groovysh replacement was inspired by, adopts "inspect last result" behavior instead of "print last result". I suspect we want to swap back to how we have always done it but there might be some classes where inspect behavior makes sense, so I haven't looked at that yet. > > So, my thinking is that we'd do the toString() but you could get the "inspect" behavior using "/inspect" or "/prnt". `toString()` by default could help us to switch back. -- 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: notifications-unsubscr...@groovy.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org