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 erro

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Sara Golemon
On Thu, Jul 23, 2020 at 10:19 AM Sara Golemon wrote: > If that's the case, then the solution still seems obvious: Defer > attributes to 8.1. > > After some discussion off list, including Nikita (who is probably closer to this "problem" than any of the rest of us), I think the best way forward at

[PHP-DEV] Re: The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Mark Randall
On 22/07/2020 13:00, Derick Rethans wrote: - There are lots of grumbles, both on here, room 11, as well as in the wider community (https://www.reddit.com/r/PHP/comments/hjpu79/it_is/) From discussions in R11 I want to offer the following example of why either option with a closing tag is pr

[PHP-DEV] PHP 7.4.9RC1 is available for testing

2020-07-23 Thread Derick Rethans
PHP 7.4.9RC1 has just been released and can be downloaded from: Or use the git tag: php-7.4.9RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system at .

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread David Rodrigues
I think that we need some symbol that isn't open-and-close like << and >>, because it will conflict with shift operation, and basically all open-and-close options are used for other things; or that confuses with error suppression like @@ and comments like #[]. Maybe we really need a new keyword, s

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Benas IML
Just to chime in, `<<...>>` does not have any BC implications or problems with bit shift operators. On Thu, Jul 23, 2020, 6:05 PM Marcio Almada wrote: > Hi > > > On Thu, July 23 2020 at 1:26 AM Mark Randall wrote: > > > > > On 23/07/2020 02:00, Sara Golemon wrote: > > > > Regards the vote; I do

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 pro

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Sara Golemon
On Thu, Jul 23, 2020 at 1:26 AM Mark Randall wrote: > On 23/07/2020 02:00, Sara Golemon wrote: > > Regards the vote; I don't believe that @@ has been proven unworkable, > > however if I'm wrong about that, then the second choice selection from > the > > last vote would obviously take precedence.

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Marcio Almada
Hi > On Thu, July 23 2020 at 1:26 AM Mark Randall wrote: > > > On 23/07/2020 02:00, Sara Golemon wrote: > > > Regards the vote; I don't believe that @@ has been proven unworkable, > > > however if I'm wrong about that, then the second choice selection from the > > > last vote would obviously take

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Theodore Brown
On Thu, July 23 2020 at 1:26 AM Mark Randall wrote: > On 23/07/2020 02:00, Sara Golemon wrote: > > Regards the vote; I don't believe that @@ has been proven unworkable, > > however if I'm wrong about that, then the second choice selection from the > > last vote would obviously take precedence. >

[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 https://wiki.php.net/rfc/concatenation_pre

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Matteo Beccati
Hi, On 22/07/2020 19:09, tyson andre wrote: > I think that `#[` has its own issues, but am open to re-voting on it. > For example, the following snippet would get parsed differently in PHP 7.4 > and PHP 8.0, given a hypothetical JIT annotation for Opcache. > With <>, it would give people a clear

[PHP-DEV] PHP 8.0.0alpha3 is ready for testing

2020-07-23 Thread Gabriel Caruso
PHP 8.0.0alpha3 has just been released and can be downloaded from https://downloads.php.net/~carusogabriel Or use the git tag: `php-8.0.0alpha3` Windows binaries are available at https://windows.php.net/qa Please test it carefully, and report any bugs in the bug system: https://bugs.php.net 8.0

[PHP-DEV] PHP 7.3.21RC1 is available for testing

2020-07-23 Thread Christoph M. Becker
PHP 7.3.21RC1 has just been released and can be downloaded from: Or use the git tag: php-7.3.21RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system. 7.3.21 should be expected in

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Mark Randall
On 23/07/2020 08:02, Côme Chilliet wrote: To be clear, is there anyone who voted for @@ and changed his mind based on new information? Please see the initial discussion here: https://externals.io/message/110568#111038 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, vi

Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-23 Thread Côme Chilliet
Le Thu, 23 Jul 2020 07:26:41 +0100, Mark Randall a écrit : > What we do have, is a deep sense of unease that we collectively made the > wrong decision, based on, in part, incomplete information. To be clear, is there anyone who voted for @@ and changed his mind based on new information? I fee