Re: [PHP-DEV] Modules, again.

2025-05-08 Thread Larry Garfield
On Wed, May 7, 2025, at 3:51 PM, Michael Morris wrote: >> The main exception, as you have pointed out, is plugin architectures >> like WordPress, where the plugin might want to "privately" use some >> library without impacting the host application and other plugins. > > It's not just WordPress.

Re: [PHP-DEV] Modules, again.

2025-05-07 Thread Rowan Tommins [IMSoP]
On 7 May 2025 21:51:29 BST, Michael Morris wrote: >On Wed, May 7, 2025 at 3:24 PM Rowan Tommins [IMSoP] >wrote: > >Other libraries have the means to import into a namespace because their >namespaces aren't just a quick and dirty string replacement. I've even >proposed such a long, long time a

Re: [PHP-DEV] Modules, again.

2025-05-07 Thread Michael Morris
On Wed, May 7, 2025 at 3:24 PM Rowan Tommins [IMSoP] wrote: > > Problem number 2 is what you seem to be trying to address. > The main thing, yes. This solution incidentally solves class privacy issues several unrelated and failed RFC's have addressed, including Nested Classes which is currently

Re: [PHP-DEV] Modules, again.

2025-05-07 Thread Rowan Tommins [IMSoP]
On 04/05/2025 08:34, Michael Morris wrote: PHP has no way of dealing with userland code trying to write to the same entry on the symbol tables.  Namespaces are a workaround of this and combined with autoloaders they've yielded the package environments we currently have (usually composer), but a

Re: [PHP-DEV] Modules, again.

2025-05-07 Thread Michael Morris
On Wed, May 7, 2025 at 10:59 AM Larry Garfield wrote: > > So it's not really giving private symbols. It's not even blocking access > to anything, since it can still just be included or autoloaded. What > you're proposing is really just an optional loading facade (the real kind > of facade) that

Re: [PHP-DEV] Modules, again.

2025-05-07 Thread Larry Garfield
On Tue, May 6, 2025, at 1:33 AM, Michael Morris wrote: > Resetting and moving the proposal writeup to a github hosted markdown > file here: > https://github.com/michael-lloyd-morris/php-modules-rfc/blob/main/php-modules.md >> From your follow up statements, it seems that what you are proposing i

Re: [PHP-DEV] Modules, again.

2025-05-05 Thread Michael Morris
Resetting and moving the proposal writeup to a github hosted markdown file here: https://github.com/michael-lloyd-morris/php-modules-rfc/blob/main/php-modules.md On Mon, May 5, 2025 at 12:44 AM Larry Garfield wrote: > > > So before you get indignant and call me a liar ("You're 4 for 4 on > false

Re: [PHP-DEV] Modules, again.

2025-05-05 Thread Edmond Dantes
Hello, Michael. Thank you very much for your work. It's very interesting. Let me look at this idea from an architectural perspective. Did I understand correctly from the text that: * Modules control which entities are public and which are not? * During import, we specify which entities we want

Re: [PHP-DEV] Modules, again.

2025-05-05 Thread Arvids Godjuks
On Sun, 4 May 2025 at 17:31, Michael Morris wrote: > > > On Sun, May 4, 2025 at 7:06 AM Arvids Godjuks > wrote: > >> >> It ended exactly how my first judging brain wave thought it would go - >> this whole thing is about fixing WordPress by changing the language. Plain >> and simple. >> >> > That

Re: [PHP-DEV] Modules, again.

2025-05-05 Thread Stephen Reay
> On 5 May 2025, at 04:18, Larry Garfield wrote: > > On Sun, May 4, 2025, at 2:34 AM, Michael Morris wrote: >> It's been 9 months. Been researching, working on other projects, >> mulling over >> points raised the last time I brought this up. And at the moment I >> don't think >> PHP 8.5 is

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Larry Garfield
On Sun, May 4, 2025, at 5:40 PM, Michael Morris wrote: > On Sun, May 4, 2025 at 5:38 PM Larry Garfield wrote: >> >> > PHP Code >> > --- >> > >> > namespace MyModule; >> > >> > yield function sum(a, b) { return a + b; } >> > >> >

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Michael Morris
On Sun, May 4, 2025 at 5:38 PM Larry Garfield wrote: > > > PHP Code > --- > > > > namespace MyModule; > > > > yield function sum(a, b) { return a + b; } > > > > > --

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Larry Garfield
On Sun, May 4, 2025, at 4:25 PM, Michael Morris wrote: > On Sun, May 4, 2025 at 5:19 PM Larry Garfield wrote: >> On Sun, May 4, 2025, at 2:34 AM, Michael Morris wrote: >> > It's been 9 months. Been researching, working on other projects, >> > mulling over >> > points raised the last time I broug

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Michael Morris
On Sun, May 4, 2025 at 5:19 PM Larry Garfield wrote: > On Sun, May 4, 2025, at 2:34 AM, Michael Morris wrote: > > It's been 9 months. Been researching, working on other projects, > > mulling over > > points raised the last time I brought this up. And at the moment I > > don't think > > PHP 8.5 is

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Larry Garfield
On Sun, May 4, 2025, at 2:34 AM, Michael Morris wrote: > It's been 9 months. Been researching, working on other projects, > mulling over > points raised the last time I brought this up. And at the moment I > don't think > PHP 8.5 is in its final weeks so this isn't a distraction for that. > T

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Michael Morris
On Sun, May 4, 2025 at 7:06 AM Arvids Godjuks wrote: > > It ended exactly how my first judging brain wave thought it would go - > this whole thing is about fixing WordPress by changing the language. Plain > and simple. > > That is a lie. Go back and read again - I discuss how this will improve Dr

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Deleu
Hi! On Sun, May 4, 2025 at 8:08 AM Arvids Godjuks wrote: > > > On Sun, 4 May 2025 at 10:36, Michael Morris wrote: > >> It's been 9 months. Been researching, working on other projects, mulling >> over >> points raised the last time I brought this up. And at the moment I don't >> think >> PHP 8.5

[PHP-DEV] Re:  Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Arvids Godjuks
On Sun, 4 May 2025 at 14:57, Jochen Schultz wrote: > > > Am 04.05.25, 13:07 schrieb Arvids Godjuks : >> >> >> >> On Sun, 4 May 2025 at 10:36, Michael Morris wrote: >> >>> It's been 9 months. Been researching, working on other projects, mulling >>> over >>> points raised the last time I brought t

Aw: Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Jochen Schultz
Am 04.05.25, 13:07 schrieb Arvids Godjuks gmail.com>: On Sun, 4 May 2025 at 10:36, Michael Morris wrote:It's been 9 months. Been researching, working on other projects, mulling over points raised the last time I brought this up. And at the moment I don't think PHP 8.5 is in its

Re: [PHP-DEV] Modules, again.

2025-05-04 Thread Arvids Godjuks
On Sun, 4 May 2025 at 10:36, Michael Morris wrote: > It's been 9 months. Been researching, working on other projects, mulling > over > points raised the last time I brought this up. And at the moment I don't > think > PHP 8.5 is in its final weeks so this isn't a distraction for that. The > prev

[PHP-DEV] Modules, again.

2025-05-04 Thread Michael Morris
It's been 9 months. Been researching, working on other projects, mulling over points raised the last time I brought this up. And at the moment I don't think PHP 8.5 is in its final weeks so this isn't a distraction for that. The previous discussion got seriously, seriously derailed and I got lost