Re: [PHP-DEV] [RFC] Deprecations for PHP 8.1

2021-06-29 Thread Pierre Joye
Hi Nikita, Very good list, thank you. The only one I am totally not sure about is image(filled)polygon $numpoints. There are really tons of codes out there using it. There is little to no gain to remove it but create a load of 1st level support requests to many packages and applications. A

Re: [PHP-DEV] [RFC] Alternative syntax for Nowdoc.

2021-06-29 Thread Manuel Canga
En mar, 29 jun 2021 21:33:19 +0200 Michał Marcin Brzuchalski escribió > Hi Manuel, > I think a Markdown document including PHP code snippet with above examples > could cause issues while parsing. > I can imagine parsers don't expect end-of-snippet tag "```" being not an > end tag

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-29 Thread Levi Morrison via internals
On Tue, Jun 29, 2021 at 12:05 PM Larry Garfield wrote: > > On Tue, Jun 29, 2021, at 1:00 PM, Larry Garfield wrote: > > On Tue, Jun 29, 2021, at 12:30 PM, Guilliam Xavier wrote: > > > (Extracted from the "Pipe Operator, take 2" thread) > > > > > > On Tue, Jun 29, 2021 at 12:54 AM Larry Garfield >

Re: [PHP-DEV] [RFC] Alternative syntax for Nowdoc.

2021-06-29 Thread Michał Marcin Brzuchalski
Hi Manuel, wt., 29 cze 2021 o 18:16 Manuel Canga napisał(a): > Hi, folks, here again with a new purpose: ``` as alternative to Nowdoc > syntax. > > Currently, Nowdoc syntax is very "verbose": > > $string =<<<'CODE' > > Link: '%s' > > CODE; > > Why doesn't something like this?: > > $string

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-29 Thread Larry Garfield
On Tue, Jun 29, 2021, at 1:00 PM, Larry Garfield wrote: > On Tue, Jun 29, 2021, at 12:30 PM, Guilliam Xavier wrote: > > (Extracted from the "Pipe Operator, take 2" thread) > > > > On Tue, Jun 29, 2021 at 12:54 AM Larry Garfield > > wrote: > > > > > On Mon, Jun 28, 2021, at 5:30 PM, Olle

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-29 Thread Larry Garfield
On Tue, Jun 29, 2021, at 12:30 PM, Guilliam Xavier wrote: > (Extracted from the "Pipe Operator, take 2" thread) > > On Tue, Jun 29, 2021 at 12:54 AM Larry Garfield > wrote: > > > On Mon, Jun 28, 2021, at 5:30 PM, Olle Härstedt wrote: > > > > > Would a slimmed down version have more support? How

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-29 Thread Guilliam Xavier
On Tue, Jun 29, 2021 at 11:04 AM Côme Chilliet < come.chill...@fusiondirectory.org> wrote: > Le Thu, 17 Jun 2021 08:30:43 -0500, > "Larry Garfield" a écrit : > > > > The ? character was chosen for the placeholder largely because it was > > > > unambiguous and easy to implement. Prior, similar

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-29 Thread Guilliam Xavier
(Extracted from the "Pipe Operator, take 2" thread) On Tue, Jun 29, 2021 at 12:54 AM Larry Garfield wrote: > On Mon, Jun 28, 2021, at 5:30 PM, Olle Härstedt wrote: > > > Would a slimmed down version have more support? How about removing the > > variadic operator, and let the user manually add

Re: [PHP-DEV] [RFC] Alternative syntax for Nowdoc.

2021-06-29 Thread Manuel Canga
En mar, 29 jun 2021 18:40:05 +0200 Rowan Tommins escribió > > The big advantage of heredoc and nowdoc syntax is that you can choose > the delimiter to be something that you know won't occur in the string. > For instance: > > $markdown = <<<'MD' > PHP has lots of ways to

Re: [PHP-DEV] [RFC] Alternative syntax for Nowdoc.

2021-06-29 Thread Rowan Tommins
On 29/06/2021 17:15, Manuel Canga wrote: Hi, folks, here again with a new purpose: ``` as alternative to Nowdoc syntax. Currently, Nowdoc syntax is very "verbose": $string =<<<'CODE' Link: '%s' CODE; The big advantage of heredoc and nowdoc syntax is that you can choose the delimiter to

[PHP-DEV] [RFC] Alternative syntax for Nowdoc.

2021-06-29 Thread Manuel Canga
Hi, folks, here again with a new purpose: ``` as alternative to Nowdoc syntax. Currently, Nowdoc syntax is very "verbose": $string =<<<'CODE' Link: '%s' CODE; Why doesn't something like this?: $string =``` Link: '%s' ```; even as well: $string =```Link: '%s'```; I see a caveat: this

Re: [PHP-DEV] [RFC] Add parse_query_string as an alternative to parse_str

2021-06-29 Thread Nikita Popov
On Thu, Jun 24, 2021 at 1:20 AM Sara Golemon wrote: > On Wed, Jun 23, 2021 at 5:02 PM Kamil Tekiela > wrote: > > > I would like to propose a new simple RFC that aims to add a new function > > called parse_query_string as an alternative to parse_str. > > > >

Re: [PHP-DEV] [RFC] Add Random Extension (before: Add Random class)

2021-06-29 Thread Nikita Popov
On Sat, Jun 26, 2021 at 2:40 AM Go Kudo wrote: > Hello Internals. > > RFC has been reorganized for finalization. > > https://wiki.php.net/rfc/rng_extension > > The changes from the previous version are as follows: > > - Changed again to a class-based approach. The argument can be omitted, in >

Re: [PHP-DEV] Re: [RFC] Readonly properties

2021-06-29 Thread Larry Garfield
On Tue, Jun 29, 2021, at 8:08 AM, Nikita Popov wrote: > > You might not like the boilerplate, but that just works. > > > > Can this be considered Nikita? > > > > Well, it's a nifty hack :) I don't think this is the solution we want to > encourage though. It requires you pass extra information

Re: [PHP-DEV] Re: [RFC] Readonly properties

2021-06-29 Thread Pierre
Le 29/06/2021 à 15:08, Nikita Popov a écrit : Well, it's a nifty hack :) I don't think this is the solution we want to encourage though. It requires you pass extra information through a side-channel -- I think I'd rather not use readonly than write that code. Continuing along the same line, one

[PHP-DEV] Re: [RFC] First-class callable syntax

2021-06-29 Thread Nikita Popov
On Tue, Jun 29, 2021 at 10:36 AM Nikita Popov wrote: > On Thu, May 20, 2021 at 2:48 PM Nikita Popov wrote: > >> Hi internals, >> >> I'd like to present an RFC for a first-class callable syntax, which is >> intended as a simpler alternative to the partial function application (PFA) >> proposal:

Re: [PHP-DEV] Re: [RFC] Readonly properties

2021-06-29 Thread Nikita Popov
On Tue, Jun 29, 2021 at 9:14 AM Nicolas Grekas wrote: > Le lun. 28 juin 2021 à 18:22, Larry Garfield a >>> écrit : >>> On Mon, Jun 28, 2021, at 11:17 AM, Nicolas Grekas wrote: > > > I'd like to open the discussion on readonly properties: > > >

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-29 Thread Côme Chilliet
Le Thu, 17 Jun 2021 08:30:43 -0500, "Larry Garfield" a écrit : > > > The ? character was chosen for the placeholder largely because it was > > > unambiguous and easy to implement. Prior, similar RFCs (such as the > > > original Pipe Operator proposal from several years ago) used the $$ > > >

Re: [PHP-DEV] [RFC] First-class callable syntax

2021-06-29 Thread Olle Härstedt
2021-05-20 14:48 GMT+02:00, Nikita Popov : > Hi internals, > > I'd like to present an RFC for a first-class callable syntax, which is > intended as a simpler alternative to the partial function application (PFA) > proposal: > > https://wiki.php.net/rfc/first_class_callable_syntax > > See the

[PHP-DEV] Re: [RFC] First-class callable syntax

2021-06-29 Thread Nikita Popov
On Thu, May 20, 2021 at 2:48 PM Nikita Popov wrote: > Hi internals, > > I'd like to present an RFC for a first-class callable syntax, which is > intended as a simpler alternative to the partial function application (PFA) > proposal: > > https://wiki.php.net/rfc/first_class_callable_syntax > >

Re: [PHP-DEV] [RFC] Under Discussion: Default User-Agent for cURL

2021-06-29 Thread Michael Maroszek
Hi! Would anyone else be in favor of reusing the user_agent setting for cURL despite the BC break? At the moment all possibilities (user_agent, curl.user_agent (PHP_INI_ALL), curl.user_agent (PHP_INI_SYSTEM)) seem to have negative votes attached. I am unsure if it makes sense to go forward with

Re: [PHP-DEV] [RFC] Pipe Operator, take 2

2021-06-29 Thread Olle Härstedt
2021-06-29 0:54 GMT+02:00, Larry Garfield : > On Mon, Jun 28, 2021, at 5:30 PM, Olle Härstedt wrote: > >> Mm. Assoc arrays are by now known to be not so good. I hope... > > There are millions of PHP sites build on anonymous arrays today. > >> OCaml is strictly evaluated, not lazy like Haskell. So

Re: [PHP-DEV] Re: [RFC] Readonly properties

2021-06-29 Thread Nicolas Grekas
> > Le lun. 28 juin 2021 à 18:22, Larry Garfield a >> écrit : >> >>> On Mon, Jun 28, 2021, at 11:17 AM, Nicolas Grekas wrote: >>> > > > I'd like to open the discussion on readonly properties: >>> > > > https://wiki.php.net/rfc/readonly_properties_v2 >>> > > > >>> > > > This proposal is similar to