Re: [RFC] Change Directory class to behave like an opaque object
| From: | Gina P. Banyard | Date: | Tue, 17 Sep 2024 16:03:44 +0000 |
| Subject: | Re: [RFC] Change Directory class to behave like an opaque object | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125587@lists.php.net to get a copy of this message | ||
On Saturday, 14 September 2024 at 18:48, Christoph M. Becker <cmbecker69@gmx.de> wrote:
> On 14.09.2024 at 17:33, Gina P. Banyard wrote:
>
> > I came across the Directory class while doing some code exploration of ext/standard.
> > This class is effectively an opaque object for Directory resources, however it
> > doesn't behave like one, as it has existed since PHP 4.
> >
> > As such, I am proposing an RFC to turn this class into an opaque object..
> >
> > RFC: https://wiki.php.net/rfc/directory-opaque-object
>
>
> As I see it, an opaque object is an object which doesn't have any public
> members. Since Directory has five public members, I wouldn't call it
> opaque.
Eh, GMP is also "kinda" an opaque object, and I don't really have any better naming
idea, so I went with what is the closest common concept we have.
But if you have any idea for better terminology, I would gladly use it.
Best regards,
Gina P. Banyard