Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125723 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id D1EDA1A00BD for ; Wed, 2 Oct 2024 06:35:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1727851051; bh=O07JSB70S1wL/QfitS7Rr4pZ3YYHJoO0hgB5KAkZMo8=; h=Date:From:To:In-Reply-To:References:Subject:From; b=Qni5c5k4FH+i2hxVMT6JCynjx4Tf10dHnw8MNh5jmrRbC/Q8m6ddTISioEf8tmXOA ObHgZMZR6RlOlRjvMFcd0Nd9oQe+7O4yl4iHrMcOo03nWQwsLckxcIwESIxeqKABX9 wGZUNxySlRZ/b28MAyIrJAhm19hG90w1/YjbP1lwcEJqA1LjjHwuYGVBsl5hnnKFd9 hf7r4spe9lt/GTkq0L/UoUgKCR+HrSVWqqCEejXpfJE/E8ijtjBpeYOQfRMnkhloN7 owZbi2yxbNJkKo0WSCpoSzjjo1ipEUhO72ZxUeLXUQXKjSO7lnybqJIaXtthuyhFRQ WUt5IurBuCRRg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EDDE6180037 for ; Wed, 2 Oct 2024 06:37:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 2 Oct 2024 06:37:30 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id CBBCF1380280 for ; Wed, 2 Oct 2024 02:35:16 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-01.internal (MEProxy); Wed, 02 Oct 2024 02:35:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1727850916; x=1727937316; bh=O07JSB70S1 wL/QfitS7Rr4pZ3YYHJoO0hgB5KAkZMo8=; b=hI+lyGLYxy1R4nTpmCZEq540jA zIVyjTxdicxhMyKyh6JvNHtCK/2MK4kEWu12SaJ9NDZA6OFDmE41SsWI9tEpV5KS KiojTNH03e/WBxUF0LgZjKtzqkV7wB0r6kZ0uOV0gJY5SUpGJfbcfEZNyBg/glKY sytP20hWCNO71i02ps2iaRK6/J4cFzqt5TmGxvt7sZwJ2VVx0fRRk6v4rFmZgcU8 EeM1Cr+qTeTDgo7cGOxfPORQfoBkt4iqo2hJuqLMUoapc8Qt58KkoF25gn3ML5Zi 8h1Zf3Dm92TFhjs2+9mYJx9mrjgQf4KTARaf3s6/zo4PP8zTiaZa4iRQnBcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1727850916; x=1727937316; bh=O07JSB70S1wL/QfitS7Rr4pZ3YYH JoO0hgB5KAkZMo8=; b=gtywOCRmkWI5bADJf8SrVvbvsaTgjsBjL6qQt9JBrSa+ FxFzsja1LPsKS0gK3AII9SdKnvAhaAAmCON5zonP1a0iMSSzM13GrCsN1LzXMrOY xZo2FbsVDLCeE0FklIqmK7oYSMNufqmx5WeHsO5C6H8lTZOdBInR8qp3EbQM5RZv mghV6ml9zhgQuMeJc5FAf8NRPhaUak7WGWZpFELDTvKB/I6uWI58Wpl131iNPRrq hjWkuvrUVuqQCBlveJS8qdR0C6GmN8wI+ADvi8SxPz4Af6oOb6omQgFSccqs9PWu ODG8xclaKNad0Jk4Et+JO6SdcTMmBBdacGNCiXDOBA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddukedgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepofggff fhvffkjghfufgtsegrtderreertdejnecuhfhrohhmpedftfhosgcunfgrnhguvghrshdf uceorhhosgessghothhtlhgvugdrtghouggvsheqnecuggftrfgrthhtvghrnheptdeuje dttefhueelhfdtleeiudetlefftdduleehffegtdeihefhleeijefgveegnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosgessghothhtlh gvugdrtghouggvshdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhr tghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 73B63780068; Wed, 2 Oct 2024 02:35:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 02 Oct 2024 08:34:56 +0200 To: internals@lists.php.net Message-ID: In-Reply-To: <892124c704f6e18abe2d6c85f6e207ed516d4ed1.camel@ageofdream.com> References: <2VnM6xycBpzqzDnAZKWS4zxCSUjvoKywJRiBzTcGhS8axaFS7QwbGNQtjkovo1jQi1XLiEGGTi3KfQfWoxUT527U_-6IGO3092BZdW436q0=@gpb.moe> <3ab9db77462c5f49c7c4a977098ba4677deb363f.camel@ageofdream.com> <680c10a5523288e4b1df2760e6e03da61a1ac6c5.camel@ageofdream.com> <892124c704f6e18abe2d6c85f6e207ed516d4ed1.camel@ageofdream.com> Subject: Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object Content-Type: multipart/alternative; boundary=dc47ebd8d6554801ba87f1176076c5cb From: rob@bottled.codes ("Rob Landers") --dc47ebd8d6554801ba87f1176076c5cb Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Oct 1, 2024, at 23:02, Nick Lockheart wrote: > >=20 > > Hey Nick, > >=20 > > Is this actually an issue though? \Directory would be a weird thing > > to autoload. Most people tend to autoload specific namespaces. I > > think it would be weird to autoload into the global namespace. > >=20 > > Maybe I am wrong, and that is why I ask. > >=20 > > =E2=80=94 Rob >=20 >=20 > In a situation where people aren't using namespaces at all, it would be > normal to create your own class with a conflicting name, not knowing > there was a built-in. >=20 Hey Nick, Your reply just gave me flashbacks of the days before ctrl-click and gam= es of =E2=80=9CFind the Buried Implementation.=E2=80=9D Heh. I=E2=80=99m sure code like you describe exists, but I haven=E2=80=99t pe= rsonally run into it (outside of WordPress) since 2011? In either case, = auto loading was not in use. I=E2=80=99m not even sure how it would work= (maybe a custom/manual class-map type thing)? Sleeping on it, I do agree that Directory is a poor name for a final cla= ss. You would expect something called Directory to be abstract and be im= plemented in concrete objects like FileDirectory, FTPDirectory, WebDavDi= rectory, S3Directory, etc. For the base abstraction of a directory to be= final is a bit weird, IMHO.=20 =E2=80=94 Rob --dc47ebd8d6554801ba87f1176076c5cb Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Tue, Oct 1, = 2024, at 23:02, Nick Lockheart wrote:

> Hey Nick,

> Is this actually an issue though?= \Directory would be a weird thing
> to autoload. Most = people tend to autoload specific namespaces. I
> think = it would be weird to autoload into the global namespace.
&= gt; 
> Maybe I am wrong, and that is why I ask.

> =E2=80=94 Rob

In a situation where people aren't using nam= espaces at all, it would be
normal to create your own clas= s with a conflicting name, not knowing
there was a built-i= n.


Hey Nick,

Your reply just gave me flashbacks of the day= s before ctrl-click and games of =E2=80=9CFind the Buried Implementation= .=E2=80=9D Heh.

I=E2=80=99m sure code like = you describe exists, but I haven=E2=80=99t personally run into it (outsi= de of WordPress) since 2011? In either case, auto loading was not in use= . I=E2=80=99m not even sure how it would work (maybe a custom/manual cla= ss-map type thing)?

Sleeping on it, I do ag= ree that Directory is a poor name for a final class. You would expect so= mething called Directory to be abstract and be implemented in concrete o= bjects like FileDirectory, FTPDirectory, WebDavDirectory, S3Directory, e= tc. For the base abstraction of a directory to be final is a bit weird, = IMHO. 

=E2=80=94 Rob
--dc47ebd8d6554801ba87f1176076c5cb--