RFR: 8334599: Improve code from JDK-8302671 [v3]

Julian Waters jwaters at openjdk.org
Thu Jul 18 04:49:39 UTC 2024


On Wed, 17 Jul 2024 17:28:21 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Okay.
> 
> (Please don't go now and change all occurrences of `foo(pointer, size)` to something like `foo( [&] [size] )` :-) I dislike the increased cognitive load of this form, and prefer the classic pointer+size combo )

Even if I wanted to, that wouldn't be possible, since this syntax is only allowed when passing in an array of known size directly to the method, and the array has to match the parameter declaration in the method exactly ;)

Will wait for approval from Phil and Alexey before pushing

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

PR Comment: https://git.openjdk.org/jdk/pull/19798#issuecomment-2235323641


More information about the client-libs-dev mailing list