Re: Proposal to extend Math.min and Math.max to support multiple parameters

2025-01-24 Thread Chen Liang
: Friday, January 24, 2025 3:12 PM To: Aviad Zer ; core-libs-dev@openjdk.org Subject: Re: Proposal to extend Math.min and Math.max to support multiple parameters Hello Aviad, A brief reply here, there is some utility in having direct support for finding the min or max over an aggregate of data

Re: Proposal to extend Math.min and Math.max to support multiple parameters

2025-01-24 Thread Joseph D. Darcy
Hello Aviad, A brief reply here, there is some utility in having direct support for finding the min or max over an aggregate of data and min/max methods taking an array is something that could have been added to the platform at any point since its inception. The fact that such methods weren't

Proposal to extend Math.min and Math.max to support multiple parameters

2025-01-22 Thread Aviad Zer
Dear Core-Libs Dev Team, I hope this message finds you well. I would like to propose an enhancement to the Math class to extend the Math.min and Math.max methods to support multiple parameters using varargs. This enhancement aims to improve code readability and provide a more intuitive way to fin