Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-15 Thread Pascal Martin, AFUP
Le 02/02/2015 13:06, Andrea Faulds a écrit : The RFC, which contains the voting widget, can be found here: https://wiki.php.net/rfc/combined-comparison-operator Thanks! Hi, Discussing this RFC with other people of AFUP, we would be +1. Basically: adding such an operator would make things muc

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-04 Thread Pavel Kouřil
On Mon, Feb 2, 2015 at 11:50 PM, Stanislav Malyshev wrote: > Hi! > >> I personally would use spaceship operator often, but only if PHP had >> operator overloading for classes. So I hope it will pass and operator > > PHP has operator overloading for classes, but just for internal ones. > See: https

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Stanislav Malyshev
Hi! > I personally would use spaceship operator often, but only if PHP had > operator overloading for classes. So I hope it will pass and operator PHP has operator overloading for classes, but just for internal ones. See: https://wiki.php.net/rfc/operator_overloading_gmp For userspace ones, the

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Pavel Kouřil
Hello, I personally would use spaceship operator often, but only if PHP had operator overloading for classes. So I hope it will pass and operator overloading will pass someday as well (but operator overloading would probably require method overloading first and that's a thing you guys oppose, righ

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Pierre Joye
On Mon, Feb 2, 2015 at 11:44 PM, Levi Morrison wrote: >> Since it's been two weeks and there are no remaining issues (aside from the >> lack of a language specification patch - but that can be done later), I'm >> opening voting on this RFC. > > I just noticed that you kept T_SPACESHIP; while tha

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Levi Morrison
> Since it's been two weeks and there are no remaining issues (aside from the > lack of a language specification patch - but that can be done later), I'm > opening voting on this RFC. I just noticed that you kept T_SPACESHIP; while that is fun I don't think it is appropriate. It is a common name

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Andrea Faulds
Hey Nikita, > On 2 Feb 2015, at 16:32, Nikita Popov wrote: > > On Mon, Feb 2, 2015 at 4:27 PM, Andrea Faulds wrote: > Hey Nikita, > > > On 2 Feb 2015, at 13:49, Nikita Popov wrote: > > > > I've voted -1 because I think this should be a function and not an > > operator. compare($a, $b) is mor

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Nikita Popov
On Mon, Feb 2, 2015 at 4:27 PM, Andrea Faulds wrote: > Hey Nikita, > > > On 2 Feb 2015, at 13:49, Nikita Popov wrote: > > > > I've voted -1 because I think this should be a function and not an > operator. compare($a, $b) is more obvious than $a <=> $b and it's not like > writing comparison funct

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Levi Morrison
On Mon, Feb 2, 2015 at 8:27 AM, Andrea Faulds wrote: > Hey Nikita, > >> On 2 Feb 2015, at 13:49, Nikita Popov wrote: >> >> I've voted -1 because I think this should be a function and not an operator. >> compare($a, $b) is more obvious than $a <=> $b and it's not like writing >> comparison funct

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Andrea Faulds
Hey Nikita, > On 2 Feb 2015, at 13:49, Nikita Popov wrote: > > I've voted -1 because I think this should be a function and not an operator. > compare($a, $b) is more obvious than $a <=> $b and it's not like writing > comparison functions is such a super common use case that it needs the extra

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Markus Fischer
On 02.02.15 14:49, Nikita Popov wrote: > I've voted -1 because I think this should be a function and not an > operator. compare($a, $b) is more obvious than $a <=> $b and it's not like > writing comparison functions is such a super common use case that it needs > the extra brevity of an operator. A

Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Nikita Popov
On Mon, Feb 2, 2015 at 1:06 PM, Andrea Faulds wrote: > Hi everyone, > > Since it's been two weeks and there are no remaining issues (aside from > the lack of a language specification patch - but that can be done later), > I'm opening voting on this RFC. > > Voting starts today (2015-02-02) and en

[PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator

2015-02-02 Thread Andrea Faulds
Hi everyone, Since it's been two weeks and there are no remaining issues (aside from the lack of a language specification patch - but that can be done later), I'm opening voting on this RFC. Voting starts today (2015-02-02) and ends in two weeks' time (2015-02-16). As this adds to the PHP lang