[squeak-dev] [Pharo-users] min:max:

Hilaire hilaire at drgeo.eu
Sat Apr 21 07:07:04 UTC 2018


Le 21/04/2018 à 03:16, Ben Coman a écrit :
>
> Altering  #min:max  semantics would make awful portability,
> but perhaps it should forward to a new method to make it clear the 
> other is preferred.
>

Indeed, and it is probably a no go.
However an unbreak change could be to just twist the argument name as:

min: aMax max: aMin
^ (self min: aMax) max: aMin

At least when reading the source code, the intention is clearer.

I am comfort to not be the only one to have his brain twisted when 
reading this method uses.

Hilaire

-- 
Dr. Geo
http://drgeo.eu




More information about the Squeak-dev mailing list