On Sun, Jun 24, 2018 at 2:31 PM Rudi Theunissen <rtheunis...@php.net> wrote: >> >> Other languages (most? all?) separate equality and ordering for this reason. > > > Java doesn't really separate them. Their `==` always checks object reference > so is like PHP's ===. > But they do have the .equals() method on all objects (our ==) and the > collections use that for equality.
Java has .equals and .compareTo; these operations are separate. In Java neither integrates with operators. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php