Re: [PHP-DEV] [RFC] Unicode Text Processing

2022-12-21 Thread Larry Garfield
On Thu, Dec 15, 2022, at 9:34 AM, Derick Rethans wrote: > Hi, > > I have just published an initial draft of the "Unicode Text Processing" > RFC, a proposal to have performant unicode text processing always > available to PHP users, by introducing a new "Text" class. > > You can find it at: > http

Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly

2022-12-21 Thread Larry Garfield
On Tue, Dec 13, 2022, at 11:03 AM, Claude Pache wrote: >> Le 13 déc. 2022 à 16:34, Claude Pache a écrit : >> >> >> Hi, >> >> As of today, the following declarations are rejected as syntax errors: >> >> ```php >> class C { >> $a; >> int $b; >> } >> ``` >> >> while the following declara

Re: [PHP-DEV] [RFC] Unicode Text Processing

2022-12-21 Thread Rowan Tommins
On Wed, 21 Dec 2022 at 11:48, Derick Rethans wrote: > I know what a polyfill is, and I still don't want to see this. > I can 100% guarantee that you will *see* it - as soon as this RFC is even close to being accepted, either the Symfony project or someone else will work on such a polyfill. But

Re: [PHP-DEV] [RFC] Unicode Text Processing

2022-12-21 Thread Derick Rethans
On Fri, 16 Dec 2022, Tim Düsterhus wrote: > Hi > > On 12/16/22 14:55, Derick Rethans wrote: > > > -- > > > > > > getPositionOfFirstOccurrence(): > > > > > > I agree this is too long. How about: > > > > > > - findOffset() > > > - findOffsetLast() > > > > > > And for returnFromFirstOccu

Re: [PHP-DEV] [RFC] Unicode Text Processing

2022-12-21 Thread Derick Rethans
On Fri, 16 Dec 2022, Rowan Tommins wrote: > On 16 December 2022 13:55:02 GMT, Derick Rethans wrote: > >I do not want a polyfill. These already exist for intl and friends. > > I think you misunderstood what I meant by "polyfill"; I meant in the > sense that once the real implementation gets inclu