On Mon, 31 Mar 2025 15:03:42 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
> > This makes the list behave differently if run normally compared to being > > run in a debug session. So, I think the current "high impedance" strategy > > is motivated. The downside is a bit more complex code. > > If this is the concern, then having sublists and such work this way was well > is important too? E.g. I don't think it's easy to draw a line: any other list > or collection generated by stable lists and maps should also behave in this > way... I agree that eventually, these constructs should also have a "soft" `toString()` method. But, I think they represent a < 10% usage compared to a normal stable list. My idea was to add that later but if we believe this is important from day zero, I could do it now. ------------- PR Comment: https://git.openjdk.org/jdk/pull/23972#issuecomment-2766591455