Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123183 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 11FF81ADB63 for ; Tue, 23 Apr 2024 13:18:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1713878338; bh=WGt03b8P3dVdgo4H7gt4Ef7rX5otidKrK/A7rkCtnPk=; h=From:Subject:Date:To:From; b=le9svuFgdWbqcIxEQY8GWAFXFgn5dVysiP6goZx6X4+pFzq3HshOJ/wHXIxlRPGoF oB6HchkPH4NFfMlIo4Xk4yGzVuLfyqfq3uNrpckF2t458pOqS2esU/Fr3K3v73/o0N 6ZWV4jDli4/8lZx3zn09XKvRKKRcDqwbnkDyguPQS5qCN5WUTbhZXglFiTLs/0Pm8v zfXRu7GnC8UdF5HTPLJ7lr7gOjKvYM6o9EXHGlMSVBHws1kT/97orAX6KKIJsLebCl tVZvQ5/qdNio0p5g8Nr2uGNtLVI4vg2EjOuWUxubZt9uM+oONEpC8OPTewWWB9f8dp poXqLimM38rng== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 03846180659 for ; Tue, 23 Apr 2024 13:18:57 +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:55 +0000 (UTC) Received: from smtpclient.apple (unknown [1.124.190.135]) by mail1.25mail.st (Postfix) with ESMTPSA id 9975F6057A; Tue, 23 Apr 2024 13:18:09 +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) Subject: Re: [PHP-DEV] PDO subclass names Message-ID: Date: Tue, 23 Apr 2024 22:47:59 +0930 To: Bilge , internals@lists.php.net X-Mailer: iPhone Mail (21E236) From: php-lists@koalephant.com (Stephen Reay) =EF=BB=BF 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: >> ``` >> import MyLib\HTTP; >> $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.