Re: [PHP-DEV] Zephir, and other tangents

2024-09-10 Thread Rowan Tommins [IMSoP]
On 11 September 2024 03:57:23 BST, Mike Schinkel wrote: >If you've gotten this far and we are still in agreement then I was looking for >a way to make it easier to add operator overloading for classes to be added to >core. So your comment "to reduce the difference between what can be done in

Re: [PHP-DEV] Proposal for New Feature: Multi-level Directory Navigation Function

2024-09-10 Thread Ayesh Karunaratne
> I propose the introduction of a new function, upDir(), which simplifies the > process of moving up multiple directory levels in a file path. This function > extends the utility of the existing dirname() by allowing a user to specify > the number of directory levels they wish to ascend in a sin

[PHP-DEV] Zephir, and other tangents

2024-09-10 Thread Mike Schinkel
Hi Rowan, This message is in reply to https://externals.io/message/125455#125496 from the thread "bikeshed: Typed Aliases" > On Sep 10, 2024, at 5:35 PM, Rowan Tommins [IMSoP] > wrote: > On 10 September 2024 19:32:19 BST, Mike Schinkel wrote: >> BTW, why has nobody ever mentioned Zephir on th

Re: [PHP-DEV] bikeshed: Typed Aliases

2024-09-10 Thread Mike Schinkel
> On Sep 10, 2024, at 5:35 PM, Rowan Tommins [IMSoP] > wrote: > All of which is drifting a long way off topic, Yes, very true. I will start another thread with the title "Zephir and other tangents" to reply to your comments so as not to hijack this thread on those tangents, and so others ca

[PHP-DEV] Proposal for New Feature: Multi-level Directory Navigation Function

2024-09-10 Thread Daniel Baldwin
Hello, I’m a full stack developer and owner of Truecast that lives in Holley, Oregon, USA. Introduction Navigating up multiple directory levels is a common requirement in PHP applications, especially when managing paths in complex projects. Currently, this is achieved by chaining calls to th

Re: [PHP-DEV] bikeshed: Typed Aliases

2024-09-10 Thread Rowan Tommins [IMSoP]
On 10 September 2024 19:32:19 BST, Mike Schinkel wrote: >BTW, why has nobody ever mentioned Zephir on this list (that I am aware of?) Zephir is an interesting idea that has never quite fulfilled its aims. The Phalcon developers hoped that creating a more PHP-like language would allow more pe

Re: [PHP-DEV] What to do with ext/snmp?

2024-09-10 Thread Bilge
On Tue, 10 Sept 2024, 22:49 Gina P. Banyard, wrote: > > But it is my biggest belief that most extensions would be better outside > the php-src repo and live in PECL so they could be updated independently > and not tied to the yearly PHP release schedule. > The fact that ext/cURL is not allowed to

Re: [PHP-DEV] [Discussion] Implementing interfaces via traits

2024-09-10 Thread Gina P. Banyard
On Tuesday, 27 August 2024 at 09:25, Brent Roose wrote: > Back to PHP, using traits as types seems impossible, since traits are a > compile-time copy/paste mechanism, which means there’s no type information > available about them at runtime. > > However, allowing traits to implement interfaces

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-10 Thread Rowan Tommins [IMSoP]
On 10 September 2024 18:59:11 BST, Rob Landers wrote: >From the beginning, I have stated that I don't see these two RFCs as competing >or mutually exclusive. > ... > If this RFC succeeds, it will simplify the design of core autoloading, > allowing us to focus expressly on the API, which I bel

Re: [PHP-DEV] What to do with ext/snmp?

2024-09-10 Thread Gina P. Banyard
On Friday, 30 August 2024 at 20:13, Christoph M. Becker wrote: > On 30.08.2024 at 19:05, Jim Winstead wrote: > > > Perhaps if the effort from the PHP Foundation to build a next-generation > > PECL bears fruit, an even harder look can be taken at migrating out even > > more of the extensions s

Re: [PHP-DEV] bikeshed: Typed Aliases

2024-09-10 Thread Mike Schinkel
Hi Rob, > On Sep 10, 2024, at 4:31 AM, Rob Landers wrote: > This is very similar (behaviorally) to what I wanted to do with GMP. > Overloading GMP would have given you int-like powers in your type. The > biggest negative feedback I got was that people would abuse it still; so we > need some wa

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-10 Thread Rob Landers
On Tue, Sep 10, 2024, at 15:28, Gina P. Banyard wrote: > On Tuesday, 3 September 2024 at 23:44, Rob Landers wrote: >> On Thu, Aug 15, 2024, at 17:22, Rob Landers wrote: >>> Hello internals, >>> >>> I've decided to attempt an RFC for function autoloading. After reading >>> hundreds of ancient (an

Re: [PHP-DEV] function autoloading v4 RFC

2024-09-10 Thread Gina P. Banyard
On Tuesday, 3 September 2024 at 23:44, Rob Landers wrote: > On Thu, Aug 15, 2024, at 17:22, Rob Landers wrote: > >> Hello internals, >> >> I've decided to attempt an RFC for function autoloading. After reading >> hundreds of ancient (and recent) emails relating to the topic along with >> severa

Re: [PHP-DEV] bikeshed: Typed Aliases

2024-09-10 Thread Rob Landers
On Tue, Sep 10, 2024, at 10:00, Mike Schinkel wrote: >> On Sep 9, 2024, at 5:35 PM, Rowan Tommins [IMSoP] >> wrote: >> >> On 09/09/2024 19:41, Mike Schinkel wrote: >>> In Go you cannot add or subtract on a typedef without casting to the >>> underlying type. I would definitely prefer that to be

Re: [PHP-DEV] bikeshed: Typed Aliases

2024-09-10 Thread Mike Schinkel
> On Sep 9, 2024, at 5:35 PM, Rowan Tommins [IMSoP] > wrote: > > On 09/09/2024 19:41, Mike Schinkel wrote: >> In Go you cannot add or subtract on a typedef without casting to the >> underlying type. I would definitely prefer that to be relaxed, but only >> if it is relaxed via an explicit opt