savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
157 stars 12 forks source link

Add `Numeric.Comparable.at_most` and `.at_least`. #314

Closed jemc closed 2 years ago

jemc commented 2 years ago

These replace the now-deprecated min and max, respectively.

The new naming is less likely to confuse the reader in the very common usage of using these methods to enforce a given maximum limit (using min/at_most) or minimum limit (using max/at_least).

See discussion in https://savi.zulipchat.com/#narrow/stream/294906-libraries/topic/Numeric.2Emin.20and.20Numeric.2Emax