-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] max/maximum min/minimum #37733
Comments
Another option would be to ditch |
Right, what's useful about 2-argument |
Closing the issue based on the up and down votes 👍 |
Ref #37944 |
Unlike the
+
operation that is binary in a given space of objects, and naturally extended to a n-ary operation via the LaTeX\sum
orreduce(+, collection)
, the maximum and minimum of a set of objects is n-ary by definition. Currently, however, we fight withmax
vs.maximum
every day depending on the number of arguments we have in our use cases.I know this is a breaking suggestion, but I think it would be really helpful if the language had a single operation
max(collection)
that is n-ary, and ask users to simply domax((x,y))
if they need the binary particular case. Similar for themin
vs.minimum
battle.Regardless of the potential breaks, do we still have time to fix this annoyance in a major release? Save those seconds looking up the docs every time we need to compute the maximum/minimum of something.
The text was updated successfully, but these errors were encountered: