Re: [PHP-DEV] [RFC] Readonly property hooks

2025-07-22 Thread Rob Landers
On Tue, Jul 22, 2025, at 02:10, Eric Norris wrote: > On Sun, Jul 20, 2025 at 4:19 PM Rob Landers wrote: > > > > > > > > On Sun, Jul 20, 2025, at 19:18, Eric Norris wrote: > > > > Hi Rob, > > > > I'm going to respond to a few points from earlier emails here instead > > of each one. > > > > On Sat

Re: [PHP-DEV][DISCUSSION] Add locale and strength for grapheme functions

2025-07-22 Thread youkidearitai
2025年7月15日(火) 16:05 youkidearitai : > > 2025年7月14日(月) 19:22 Derick Rethans : > > > > On Wed, 9 Jul 2025, youkidearitai wrote: > > > > > Hi, Internals > > > > > > I changed below the RFC. > > > - https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive > > > Pull request is below: > > > - h

Re: [PHP-DEV] Oniguruma maintenance was ended on 2025-04-24

2025-07-22 Thread Calvin Buckley
On Jul 22, 2025, at 6:10 AM, Peter Kokot wrote: > > I still think that Oniguruma needs to be bundled to make builds simpler. > Deprecating this part of the mbstring extension will take until PHP 9 to be > able to remove it (at least according to current PHP practices - deprecation > and remova

Re: [PHP-DEV] [RFC] Readonly property hooks

2025-07-22 Thread Rob Landers
On Tue, Jul 22, 2025, at 12:17, Claude Pache wrote: > > >> Le 22 juil. 2025 à 11:25, Rob Landers a écrit : >> >> >>> Should I be able to mark this class as readonly? I would think so. >>> >>> I don’t think so. >>> >>> If you want to *document* the intended invariant, you can put a @r

Re: [PHP-DEV] [RFC] Readonly property hooks

2025-07-22 Thread Claude Pache
> Le 22 juil. 2025 à 11:25, Rob Landers a écrit : > > >> >>> Should I be able to mark this class as readonly? I would think so. >> >> >> I don’t think so. >> >> If you want to *document* the intended invariant, you can put a @readonly >> tag in a phpdoc comment. >> >> Adding a `readonly`

Re: [PHP-DEV] Oniguruma maintenance was ended on 2025-04-24

2025-07-22 Thread Peter Kokot
On Fri, 18 Jul 2025 at 03:01, youkidearitai wrote: > 2025年7月16日(水) 21:37 Jakub Zelenka : > > > > On Tue, Jul 15, 2025 at 6:44 PM Niels Dossche > wrote: > >> > >> On 15/07/2025 09:26, youkidearitai wrote: > >> > 2025年6月19日(木) 3:45 Peter Kokot : > >> >> > >> >> What about bundling Oniguruma to php

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

2025-07-22 Thread Theodore Brown
On Tue, July 8, 2025 at 06:35 Christoph M. Becker wrote: > On 08.07.2025 at 01:30, Theodore Brown wrote: > >> I believe Derick was commenting specifically on using separate tags >> interleaved around >> each switch, case, break, and endswitch statement (which there are no plans >> to deprecate)

Re: [PHP-DEV] Oniguruma maintenance was ended on 2025-04-24

2025-07-22 Thread Peter Kokot
On Tue, 22 Jul 2025 at 15:09, Calvin Buckley wrote: > On Jul 22, 2025, at 6:10 AM, Peter Kokot wrote: > > > > I still think that Oniguruma needs to be bundled to make builds simpler. > Deprecating this part of the mbstring extension will take until PHP 9 to be > able to remove it (at least accor

[PHP-DEV] [RFC] "Abstain" voting option for RFCs

2025-07-22 Thread Tim Düsterhus
Hi Adding an "Abstain" option to RFCs was an idea that floated around multiple times in the past and it now came up again as part of (more than) one of the RFCs that recently went to vote. I've therefore finally written up a policy RFC to add such an option. As part of doing that I have also

Re: [PHP-DEV] [RFC] Partial Function Application v2

2025-07-22 Thread Tim Düsterhus
Hi Am 2025-07-22 22:02, schrieb Larry Garfield: It seems the discussion has quieted down and wasn't particularly contentious to begin with (whew), so we're just about ready for a vote. Would it not be appropriate to answer unanswered questions in the discussion (i.e. mine from 12 days ago) an

Re: [PHP-DEV] Proposal. Pipeline assignment operator

2025-07-22 Thread Tim Düsterhus
Hi Am 2025-07-20 21:31, schrieb Vadim Dvorovenko: In fluent we even can write foo()->bar()->baz()->assignTo($x) (as it's user-defined method, we can make any logic). With fluent we do not need nor pipe, nor ltr-assignment. But someone thought fluent syntax is not good, as this is not native la

Re: [PHP-DEV] [RFC] Readonly property hooks

2025-07-22 Thread Rob Landers
On Tue, Jul 22, 2025, at 11:18, Claude Pache wrote: > > >> Le 22 juil. 2025 à 09:43, Rob Landers a écrit : >> >> You can also implement this today, without using readonly: >> >> class Foo { >> public int $bar { >> get => $this->bar; >> set => empty($this->bar) ? $this->bar = $value :

Re: [PHP-DEV] [RFC] Readonly property hooks

2025-07-22 Thread Claude Pache
> Le 22 juil. 2025 à 09:43, Rob Landers a écrit : > > You can also implement this today, without using readonly: > > class Foo { > public int $bar { > get => $this->bar; > set => empty($this->bar) ? $this->bar = $value : throw new > LogicException("nope"); > } > } > > https://3v4

Re: [PHP-DEV] [RFC] Partial Function Application v2

2025-07-22 Thread Larry Garfield
On Sat, Jun 28, 2025, at 12:06 AM, Larry Garfield wrote: > Hi folks. Arnaud and I would like to present take-2 at Partial > Function Application. > > https://wiki.php.net/rfc/partial_function_application_v2 > > It is largely similar to the previous PFA proposal from 2021, though > there are a nu

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

2025-07-22 Thread Tim Düsterhus
Hi Am 2025-07-02 21:56, schrieb Gina P. Banyard: https://wiki.php.net/rfc/deprecations_php_8_5 Gina asked me to announce the plan to start the vote for her. Except for the "Deprecate using values null as an array offset and when calling array_key_exists()" proposal (which originally was the