Re: [RFC] Change Directory class to behave like an opaque object
| From: | Christoph M. Becker | Date: | Tue, 17 Sep 2024 17:30:35 +0000 |
| Subject: | Re: [RFC] Change Directory class to behave like an opaque object | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125592@lists.php.net to get a copy of this message | ||
On 17.09.2024 at 18:03, Gina P. Banyard wrote:
> 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:
>>
>>> 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,
Yeah, but this only has magic methods, while Directory already has
"proper" methods.
> 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.
No, I don't have a better idea, and I'm not too much concerned about
that now. Only my first reaction was: "What? Why remove the existing
methods?"
Christoph