Re: [PHP-DEV] [RFC] [Discussion] Optional interfaces

2025-03-14 Thread Jorg Sowa
Hello Juris, There is some uncertainty for me on how this approach would work with namespaces. Let's get this example: https://3v4l.org/bI1Rj I would expect to get the error message that I forgot to insert `use Stringable;`. But with your idea everything is fine. I don't like such ambiguity and I

Re: [PHP-DEV] [RFC] [Discussion] Optional interfaces

2025-03-14 Thread Bob Weinand
Hey Gina, On 12.3.2025 06:16:15, Gina P. Banyard wrote: On Tuesday, 11 March 2025 at 16:37, Juris Evertovskis wrote: Hey, Just a headsup that I plan to start the vote in a couple of days. Please let me know if there are concerns that might affect your stance on this proposal. https://wik

Re: [PHP-DEV] [RFC] [Discussion] Optional interfaces

2025-03-14 Thread Juris Evertovskis
On 2025-03-14 16:04, Jorg Sowa wrote: Hello Juris, There is some uncertainty for me on how this approach would work with namespaces. Let's get this example: https://3v4l.org/bI1Rj I would expect to get the error message that I forgot to insert `use Stringable;`. But with your idea everything

Re: [PHP-DEV] RFC: short and inner classes

2025-03-14 Thread Rowan Tommins [IMSoP]
On 14/03/2025 17:37, Rob Landers wrote: What about a hybrid approach? Maybe something like `\\` that Tim suggested? I'm surprised nobody has pointed out yet that \ as namespace separator is already controversial because of how commonly it is used as an escape prefix, leading to a lot of situ

Re: [PHP-DEV] Release Managers for PHP 8.5

2025-03-14 Thread Gunnard Engebreth
On 3/13/25 11:12 AM, Calvin Buckley wrote: On Mar 13, 2025, at 11:59 AM, Calvin Buckley wrote: Hi all, It's time to start the process of finding and electing RMs for the next minor PHP release. I'll also note that we plan to start voting on candidates on the 2nd, so there's plenty of time t

Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API

2025-03-14 Thread Máté Kocsis
Hi Ignace, > > All URI components - with the exception of the host - can be > retrieved in two formats: > > I believe you mean - with the excepotion of the Port > > Even though I specifically meant WHATWG's host that is only available in only one format, you are right, the port is never availabl

Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API

2025-03-14 Thread Máté Kocsis
Hi Hammed, What's wrong with declaring all the methods as final eg. > https://github.com/lnear-dev/ada-url/blob/main/ada_url.stub.php I've just noticed your message, sorry. Coincidentally - as I wrote a few days ago -, I'm also experimenting with making methods final. Máté >

Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API

2025-03-14 Thread ignace nyamagana butera
On 14/03/2025 20:45, Máté Kocsis wrote: Hi Ignace,  > All URI components - with the exception of the host - can be retrieved in two formats: I believe you mean - with the excepotion of the Port Even though I specifically meant WHATWG's host that is only available in only one for

[PHP-DEV] [VOTE] Optional Interfaces

2025-03-14 Thread Juris Evertovskis
Hello, I've opened the vote on the Optional interfaces RFC. https://wiki.php.net/rfc/optional-interfaces Implementation: https://github.com/php/php-src/pull/17288 Discussion: https://externals.io/message/126185 The voting will be closed on 2025-03-29 00:00:00 UTC. BR, Juri

Re: [PHP-DEV] RFC: short and inner classes

2025-03-14 Thread Rowan Tommins [IMSoP]
On 05/03/2025 23:11, Rob Landers wrote: I'd like to introduce my RFC for discussion: https://wiki.php.net/rfc/short-and-inner-classes As a user, I find the concept of inner classes quite confusing. However, I was looking at some code earlier and thought an "inner enum" would be useful, to

Re: [PHP-DEV] RFC: short and inner classes

2025-03-14 Thread Bob Weinand
On 15.3.2025 00:21:32, Rowan Tommins [IMSoP] wrote: On 05/03/2025 23:11, Rob Landers wrote: I'd like to introduce my RFC for discussion: https://wiki.php.net/rfc/short-and-inner-classes As a user, I find the concept of inner classes quite confusing. However, I was looking at some code ea

[PHP-DEV] BCMath: Supporting scientific notation

2025-03-14 Thread Saki Takamachi
Hi all! In the following issue, there was a proposal to add support for scientific notation in BCMath. https://github.com/php/php-src/issues/17876 I agree with this and have already created a prototype. https://github.com/php/php-src/pull/18068 The prototype allows to pass scientific notation v

Re: [PHP-DEV] RFC: short and inner classes

2025-03-14 Thread Bob Weinand
Hey Ilija, On 14.3.2025 17:09:40, Ilija Tovilo wrote: Hi Bob On Thu, Mar 13, 2025 at 11:36 PM Bob Weinand wrote: On 6.3.2025 23:20:37, Ilija Tovilo wrote: I would also like to echo what has been said about the :: operator, which feels out of place. I understand that \ comes with additional a

Re: [PHP-DEV] RFC: short and inner classes

2025-03-14 Thread Bilge
On 14/03/2025 21:08, Rowan Tommins [IMSoP] wrote: On 14/03/2025 17:37, Rob Landers wrote: What about a hybrid approach? Maybe something like `\\` that Tim suggested? As a perfect example of this, check out how the second paragraph is rendered wrong here: https://externals.io/message/126589#12

Re: [PHP-DEV] RFC: short and inner classes

2025-03-14 Thread Rob Landers
On Fri, Mar 14, 2025, at 19:16, Bob Weinand wrote: > Hey Rob, > > On 6.3.2025 00:11:22, Rob Landers wrote: >> Hello PHP Internals, >> >> I'd like to introduce my RFC for discussion: >> https://wiki.php.net/rfc/short-and-inner-classes > A small note on the Reflection section: it should include a

Re: [PHP-DEV] [VOTE] Optional Interfaces

2025-03-14 Thread Jakub Zelenka
On Fri, Mar 14, 2025 at 10:52 AM Jakub Zelenka wrote: > Hi, > > https://wiki.php.net/rfc/optional-interfaces >> > > I voted yes as we have got a specific use case in core - user stream > wrapper. More details can be found in > https://github.com/php/php-src/issues/10506 . > > Ah I should have pro

Re: [PHP-DEV] Re: RFC: short and inner classes

2025-03-14 Thread Rob Landers
On Wed, Mar 12, 2025, at 11:10, Rob Landers wrote: > On Thu, Mar 6, 2025, at 00:11, Rob Landers wrote: >> Hello PHP Internals, >> >> I'd like to introduce my RFC for discussion: >> https://wiki.php.net/rfc/short-and-inner-classes >> >> This RFC defines a short class syntax as well as the ability

Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API

2025-03-14 Thread Máté Kocsis
Hi Nicolas, For now, let me just quickly respond to your question regarding __debugInfo(): The RFC is also missing whether __debugInfo returns raw or non-raw > components. Then, I'm wondering if we need this per-component break for > debugging at all? It might be less confusing (on this encoding