[PHP-DEV] Re: [VOTE] Named arguments

2020-07-24 Thread Nikita Popov
On Fri, Jul 10, 2020 at 10:41 AM Nikita Popov wrote: > Hi internals, > > I have opened voting on the named arguments RFC: > https://wiki.php.net/rfc/named_params > > Voting will close on 2020-07-24. > The named arguments proposal has been accepted with 57 votes in favor and 18 votes against. Re

[PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Chris Riley
Hi all, The named parameters RFC has been accepted, despite significant objections from maintainers of larger OSS projects due to the overhead it adds to maintaining backwards compatibility as it has now made method/function parameter names part of the API; a change to them would cause a BC break

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 with

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Marcio Almada
Hi > > Hi all, > > The named parameters RFC has been accepted, despite significant objections > from maintainers of larger OSS projects due to the overhead it adds to > maintaining backwards compatibility as it has now made method/function > parameter names part of the API; a change to them would

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Chris Riley
On Fri, 24 Jul 2020 at 13:05, Marcio Almada wrote: > Hi > > > > > Hi all, > > > > The named parameters RFC has been accepted, despite significant > objections > > from maintainers of larger OSS projects due to the overhead it adds to > > maintaining backwards compatibility as it has now made meth

[PHP-DEV] Wiki Karma request

2020-07-24 Thread Chris Riley
Hi, Requesting karma to create RFC's for my account: carnage. Want to get the ball rolling on https://externals.io/message/61 Thanks, Chris

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Benjamin Eberlei
On Fri, Jul 24, 2020 at 1:13 PM Chris Riley wrote: > Hi all, > > The named parameters RFC has been accepted, despite significant objections > from maintainers of larger OSS projects due to the overhead it adds to > maintaining backwards compatibility as it has now made method/function > parameter

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Peter Bowyer
As a general point, Python went through this almost 2 years ago. Their PEP is worth reading (I didn't see it mentioned before): https://www.python.org/dev/peps/pep-0570/ Peter On Fri, 24 Jul 2020 at 12:13, Chris Riley wrote: > Hi all, > > The named parameters RFC has been accepted, despite sign

[PHP-DEV] Re: Wiki Karma request

2020-07-24 Thread Christoph M. Becker
On 24.07.2020 at 14:44, Chris Riley wrote: > Requesting karma to create RFC's for my account: carnage. Want to get the > ball rolling on https://externals.io/message/61 RFC karma has been granted. Best of luck with the RFC. :) -- Christoph M. Becker -- PHP Internals - PHP Runtime Developme

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Chris Riley
On Fri, 24 Jul 2020 at 14:01, Benjamin Eberlei wrote: > > > On Fri, Jul 24, 2020 at 1:13 PM Chris Riley wrote: > >> Hi all, >> >> The named parameters RFC has been accepted, despite significant objections >> from maintainers of larger OSS projects due to the overhead it adds to >> maintaining ba

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Benjamin Eberlei
On Fri, Jul 24, 2020 at 3:15 PM Chris Riley wrote: > On Fri, 24 Jul 2020 at 14:01, Benjamin Eberlei > wrote: > >> >> >> On Fri, Jul 24, 2020 at 1:13 PM Chris Riley wrote: >> >>> Hi all, >>> >>> The named parameters RFC has been accepted, despite significant >>> objections >>> from maintainers o

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Chris Riley
On Fri, 24 Jul 2020 at 14:43, Benjamin Eberlei wrote: > > > On Fri, Jul 24, 2020 at 3:15 PM Chris Riley wrote: > >> On Fri, 24 Jul 2020 at 14:01, Benjamin Eberlei >> wrote: >> >>> >>> >>> On Fri, Jul 24, 2020 at 1:13 PM Chris Riley wrote: >>> Hi all, The named parameters RFC has

[PHP-DEV] Re: [RFC][Proposal] Renamed parameters

2020-07-24 Thread Chris Riley
Hi all, Following up from this I've created a draft RFC: https://wiki.php.net/rfc/renamed_parameters will move to in discussion once I've ensured everything important has been captured. Regards, Chris On Fri, 24 Jul 2020 at 12:12, Chris Riley wrote: > Hi all, > > The named parameters RFC has b

Re: [PHP-DEV] Re: [RFC][Proposal] Renamed parameters

2020-07-24 Thread Benjamin Eberlei
On Fri, Jul 24, 2020 at 4:00 PM Chris Riley wrote: > Hi all, > > Following up from this I've created a draft RFC: > https://wiki.php.net/rfc/renamed_parameters will move to in discussion > once > I've ensured everything important has been captured. > > Regards, > Chris > You added PHP 8.0 as a p

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Bob Weinand
> Am 24.07.2020 um 16:11 schrieb Benjamin Eberlei : > > On Fri, Jul 24, 2020 at 4:00 PM Chris Riley wrote: > >> Hi all, >> >> Following up from this I've created a draft RFC: >> https://wiki.php.net/rfc/renamed_parameters will move to in discussion >> once >> I've ensured everything important h

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Nikita Popov
On Fri, Jul 24, 2020 at 4:50 PM Bob Weinand wrote: > > Am 24.07.2020 um 16:11 schrieb Benjamin Eberlei : > > > > On Fri, Jul 24, 2020 at 4:00 PM Chris Riley wrote: > > > >> Hi all, > >> > >> Following up from this I've created a draft RFC: > >> https://wiki.php.net/rfc/renamed_parameters will mo

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Sara Golemon
On Fri, Jul 24, 2020 at 10:10 AM Nikita Popov wrote: > > > You added PHP 8.0 as a proposed version, but that will not be possible > > > anymore 2 weeks of discussion + 2 weeks of voting are not possible to fit > > > in before the feature freeze, which is in 11 days. > > > > While you are technical

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Chris Riley
On Fri, 24 Jul 2020 at 16:41, Sara Golemon wrote: > On Fri, Jul 24, 2020 at 10:10 AM Nikita Popov > wrote: > > > > You added PHP 8.0 as a proposed version, but that will not be > possible > > > > anymore 2 weeks of discussion + 2 weeks of voting are not possible > to fit > > > > in before the fe

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Andreas Hennings
TLDR Only consider parameter names from a type-hinted interface, ignore parameter names from the actual class. - I had a look at https://wiki.php.net/rfc/named_params#to_parameter_name_changes_during_inheritance Indeed I have concerns about this, because a call with named arguments would make

Re: [PHP-DEV] [RFC][Proposal] Renamed parameters

2020-07-24 Thread Rowan Tommins
On Fri, 24 Jul 2020 at 12:12, Chris Riley > wrote: The named parameters RFC has been accepted, despite significant objections from maintainers of larger OSS projects Do you have a reference for which "larger OSS projects" you are referring to? I don't reme

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 https://wiki.

[PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-24 Thread Derek Bonner
Currently an environment variable can be specified in the php.ini file. This is useful if you want tune one or two settings in your runtime environment. Where this runs into issues is if you want to do something similar to Juan Terminio[1][2]. I'm proposing a change the php.ini parser that would a