Re:Microfeatures I'd like to see in more languages
by cpurdy on Saturday January 07, 2023 @07:27PM
(#34294653)
Ecstasy uses % for modulo, and /% for divrem (division and remainder). So "a = b % c" for calculating the modulo, but "(a, r) = b /% c" to get the divisor and remainder.
Ada has both rem and mod operatiors. I'm not sure how many other languages have operators for both.