Re: [PHP-DEV] Ternary associativity

2020-07-25 Thread Andrea Faulds
Hey, Björn Larsson wrote: Would it then make sense to have it as compile time error in 8.0 and make it right-associativein in e.g. 8.1? OTOH, when looking in RFC on top 1000 affected composer packages it looks like having the change in 8.0 might be a way forward... r//Björn L I think 7.4

Re: [PHP-DEV] Ternary associativity

2020-07-25 Thread Rowan Tommins
On 25/07/2020 16:26, Chuck Adams wrote: On Fri, Jul 24, 2020 at 1:32 PM Rowan Tommins wrote: If anything, I would argue for making both of these into errors, if that's possible. I think the biggest risk with this kind of change is not existing code relying on the old behaviour, it is code

Re: [PHP-DEV] Ternary associativity

2020-07-25 Thread Chuck Adams
On Fri, Jul 24, 2020 at 1:32 PM Rowan Tommins wrote: > If anything, I would argue for making both of these into errors, if > that's possible. I think the biggest risk with this kind of change is > not existing code relying on the old behaviour, it is code relying on > the *new* behaviour which

Re: [PHP-DEV] Ternary associativity

2020-07-24 Thread Rowan Tommins
On 23/07/2020 13:26, Nikita Popov wrote: PHP currently has an incorrect right-associative ternary operator. In https://wiki.php.net/rfc/ternary_associativity the use of nested ternaries was deprecated, and was supposed to become an error in PHP 8.0. Concurrently with that proposal

Re: [PHP-DEV] Ternary associativity

2020-07-24 Thread twosee
> 2020年7月23日 下午8:26,Nikita Popov 写道: > > Hi internals, > > PHP currently has an incorrect right-associative ternary operator. In > https://wiki.php.net/rfc/ternary_associativity the use of nested ternaries > was deprecated, and was supposed to become an error in PHP 8.0. > > Concurrently

Re: [PHP-DEV] Ternary associativity

2020-07-23 Thread Björn Larsson
Den 2020-07-23 kl. 17:26, skrev Sara Golemon: On Thu, Jul 23, 2020 at 7:26 AM Nikita Popov wrote: PHP currently has an incorrect right-associative ternary operator. In https://wiki.php.net/rfc/ternary_associativity the use of nested ternaries was deprecated, and was supposed to become an

Re: [PHP-DEV] Ternary associativity

2020-07-23 Thread Sara Golemon
On Thu, Jul 23, 2020 at 7:26 AM Nikita Popov wrote: > PHP currently has an incorrect right-associative ternary operator. In > https://wiki.php.net/rfc/ternary_associativity the use of nested ternaries > was deprecated, and was supposed to become an error in PHP 8.0. > > Concurrently with that

[PHP-DEV] Ternary associativity

2020-07-23 Thread Nikita Popov
Hi internals, PHP currently has an incorrect right-associative ternary operator. In https://wiki.php.net/rfc/ternary_associativity the use of nested ternaries was deprecated, and was supposed to become an error in PHP 8.0. Concurrently with that proposal