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

2025-03-28 Thread Paul M . Jones
Hi Maté and all, > On Mar 25, 2025, at 03:45, Máté Kocsis wrote: Regarding Rowbot slowness compared to the RFC: > I can only assume that the excessive usage of objects makes the library much > slower than what's possible > even for a userland library (obviously, an internal C implementation w

Re: [PHP-DEV] [RFC] [Discussion] Never parameters

2025-03-28 Thread Matt Fonda
Hi Tim and Larry, Thanks for sharing examples. I'm not sure I follow how never parameters help in either of these cases. As far as I can tell, the problem remains that these methods can't actually be called. On Fri, Mar 21, 2025 at 4:50 AM Tim Düsterhus wrote: > Am 2025-03-20 21:27, schrieb Mat

Re: [PHP-DEV] [RFC] [Discussion] Never parameters

2025-03-28 Thread Tim Düsterhus
Hi Am 2025-03-21 21:41, schrieb Gina P. Banyard: Am I following that? Because just from writing that I am not sure I agree, which means I may be misunderstanding. :-) I am saying: interface I { pubic function foo(never $a); } can ***not*** be "upgraded" to interface I { pubic function

Re: [PHP-DEV] [RFC] [Discussion] Never parameters

2025-03-28 Thread Larry Garfield
On Fri, Mar 28, 2025, at 3:42 PM, Matt Fonda wrote: > Hi Tim and Larry, > > Thanks for sharing examples. I'm not sure I follow how never parameters > help in either of these cases. As far as I can tell, the problem > remains that these methods can't actually be called. > I share Nikita's sentime

RE: [PHP-DEV] Using a cross-platform glob implementation on all platforms

2025-03-28 Thread Juris Evertovskis
-Original Message- From: Calvin Buckley Sent: Thursday, March 27, 2025 11:19 PM To: php internals Subject: [PHP-DEV] Using a cross-platform glob implementation on all platforms > CI is currently passing with this. Hi, It looks like you didn't have to adjust any tests. Can you clarify

Re: [PHP-DEV] [RFC] [Discussion] Never parameters

2025-03-28 Thread Tim Düsterhus
Hi Am 2025-03-25 21:42, schrieb Rowan Tommins [IMSoP]: And I've seen plenty of junior devs struggle with simple things like the difference between "nullable" and "optional", so I worry that making the type system too rich will lose PHP its reputation as an approachable language. It's possib