On Tue, 24 Mar 2026 20:04:06 GMT, Marius Hanl <[email protected]> wrote:

>> `createItemList(0, 15)`
>> 
>> is less readable than
>> 
>> `IntStream.range(0, 15).boxed().map(integer -> "Item " + integer).toList()`
>> 
>> ?
>
> It's probably more about the increased cognitive load, as you now need to 
> first check the method and remember what it does. And the size of the class.
> 
> Should I put this on my list for potential future improvements to the test 
> setup @andy-goryachev-oracle ?

I just can't believe that one function requires more cognitive load than a 
bunch of long sequential lines (are they the same? different? do I need to 
check character by character)?

It's a minor annoyance, so it's up to the author really.  There is no runtime 
impact, I think.

But I will complain about poorly formatted lambdas each time.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2118#discussion_r2984019506

Reply via email to