3 ms·
The arguments and return value of Min and Max are strictly essential to their function. Their inclusion as top-level items in a Math package is not. One could
by lmkg 6y ago
The arguments and return value of Min and Max are strictly essential to their function. Their inclusion as top-level items in a Math package is not.
One could imagine alternate taxonomies where, e.g., the Math package is divided into Arithmetic, Trig, Comparison, and Advanced sub-packages. Or where they are placed into an Operators package insted of Math.
For example, Rust puts the Max function into the cmp (Comparison) crate of std. This associates them with comparison & equality rather than trigonometry and calculus like Java does.
This is the type of subjective decision-making that qualifies something as original and non-trivial.
- nitrogen 6y agoBut if you want to run third party Java code you have to preserve package locations and method names to the letter.