Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-02-07 Thread Aviad Zer
On Mon, 20 Jan 2025 11:43:13 GMT, Aviad Zer wrote: >> This change extends the Math.min function to support multiple parameters, >> improving its usability and code readability. >> >> Previously, finding the minimum value among multiple variables required >> using nested Math.min calls or conve

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-02-07 Thread Per Minborg
On Mon, 20 Jan 2025 12:51:47 GMT, Aviad Zer wrote: >> Aviad Zer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update Math.java by adding extended max function > >> Before dealing with a CSR, I suggest you socialize your idea/PR in the

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Aviad Zer
On Mon, 20 Jan 2025 11:43:13 GMT, Aviad Zer wrote: >> This change extends the Math.min function to support multiple parameters, >> improving its usability and code readability. >> >> Previously, finding the minimum value among multiple variables required >> using nested Math.min calls or conve

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Per Minborg
On Mon, 20 Jan 2025 11:43:13 GMT, Aviad Zer wrote: >> This change extends the Math.min function to support multiple parameters, >> improving its usability and code readability. >> >> Previously, finding the minimum value among multiple variables required >> using nested Math.min calls or conve

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Aviad Zer
On Mon, 20 Jan 2025 11:48:20 GMT, Martin Desruisseaux wrote: >> Aviad Zer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update Math.java by adding extended max function > > Aren't `Math.min(values)` methods duplicating `Arrays.stream(v

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Martin Desruisseaux
On Mon, 20 Jan 2025 11:43:13 GMT, Aviad Zer wrote: >> This change extends the Math.min function to support multiple parameters, >> improving its usability and code readability. >> >> Previously, finding the minimum value among multiple variables required >> using nested Math.min calls or conve

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters

2025-01-20 Thread Aviad Zer
On Wed, 15 Jan 2025 14:26:32 GMT, Aviad Zer wrote: > This change extends the Math.min function to support multiple parameters, > improving its usability and code readability. > > Previously, finding the minimum value among multiple variables required using > nested Math.min calls or converting

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Aviad Zer
> This change extends the Math.min function to support multiple parameters, > improving its usability and code readability. > > Previously, finding the minimum value among multiple variables required using > nested Math.min calls or converting the variables into an array and iterating > through