Re: Make sorting stable

From: Date: Wed, 04 Mar 2020 23:36:54 +0000
Subject: Re: Make sorting stable
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-108859@lists.php.net to get a copy of this message
Christoph M. Becker wrote:
Given that we have internal classes which deliberately have such comparison behavior (i.e. returning 0 or 1, to signal that there is no order defined), e.g. Closures[1], I tend to prefer raising a warning instead of trying to recover.
Oof… I wonder if we should make FALSE (maybe NULL too?) a special value to signify “no ordering”? Thanks, Andrea

« previous php.internals (#108859) next »