Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123182 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 6D1271A009C for ; Tue, 23 Apr 2024 13:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1713878322; bh=+uwzXoGkQzJsUdYfJmr2NpaSyJzLSPwy/uCiGR6xjpE=; h=From:Date:References:In-Reply-To:Subject:To:From; b=WuEvj23xEr7UwAHd89MPcWgkJ87e5sGggmaTxmt8nLABdE9u2pNvibYh6RFfAW1Nj Ue+NWqZUrRH+D45RnFscH0uQ/AhfUze/FNeunp8iCADp0qk4JKi3xcN2MI8rLtw/to ytMAXJwPfD8MHjjsnzy9fjDpZd36ZP9Y17dPDTkUbQEbjb+qWDH0ttEJYV3cWyo9qv UyDjHJ/XcvtGKaLqFMzYJeP+XVcN6F1Yl5gimx1cI7UXsOCVIJRLN2dP5tqka05DdG 0L4YpUBmnDrYaRs9lw28baG7Gi7EgK8OJfjxmOZfKT4dRFnV5q+cG5B1Tf3mR+0330 LJb4nEv35LHaQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 99F721805FD for ; Tue, 23 Apr 2024 13:18:37 +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.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail1.25mail.st (mail1.25mail.st [206.123.115.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 23 Apr 2024 13:18:37 +0000 (UTC) Received: from smtpclient.apple (unknown [1.124.190.135]) by mail1.25mail.st (Postfix) with ESMTPSA id 3037E6057A; Tue, 23 Apr 2024 13:17:51 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (1.0) Date: Tue, 23 Apr 2024 22:47:37 +0930 Message-ID: References: <1cc7c609-0c12-4050-b792-2f4077a6ae69@scriptfusion.com> In-Reply-To: <1cc7c609-0c12-4050-b792-2f4077a6ae69@scriptfusion.com> Subject: Re: [PHP-DEV] PDO subclass names To: Bilge , internals@lists.php.net X-Mailer: iPhone Mail (21E236) From: php-lists@koalephant.com (Stephen Reay) Sent from my iPhone > On 23 Apr 2024, at 22:35, Bilge wrote: > =EF=BB=BFOn 23/04/2024 10:25, Stephen Reay wrote: >> The argument that "Client" is meaningless becomes pretty moot when you re= alise that you can import a *namespace* and use it relatively, if you so wis= h: >>=20 >> ``` >> import MyLib\HTTP; >>=20 >> $a =3D new HTTP\Client(...); >> ``` >=20 > Hi Stephen, >=20 > Granted, but I also believe the user can and should have the reasonable ex= pectation that they can work comfortably (without conflicts or aliases) usin= g leaf (class) names exclusively. >=20 > Kind regards, > Bilge I'm sorry but I think you've missed the entire point of namespaces if you wa= nt class names to all be universally unique without their namespace componen= t. The referenced RFC gives clear examples of how a class with a prefix would b= e converted to a namespace and class.=20