Re: Re: Feature request and RFC
| From: | Lester Caine | Date: | Sun, 08 Mar 2015 09:27:38 +0000 |
| Subject: | Re: Re: Feature request and RFC | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84427@lists.php.net to get a copy of this message | ||
On 08/03/15 08:57, Thomas Gielfeldt wrote:
>> >
> What about a "hybrid" solution? Pass the flags as well as a callback. Then
> the implementor can react on the flags if necessary.
>
> https://gist.github.com/gielfeldt/c0ca611f525878c36a65
Off topic I know - but how the **** do I make the github text readable?
Light grey on white may work for some, but even changing contrast on the
monitor I can't actually read that :(
> In this case, I've introduced a new constant for user defined sort.
> However, I see a couple of variations on this.
>
> 1.) Constant for determining user defined sort (as per the example).
> 2.) 2 methods, one for usorts, and one for the others (still with both
> flags and callbacks). This will result in 6 methods, if we keep it to just
> one interface.
> 3.) 3 interfaces with either one or two methods (option 1 & 2 above).
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk