Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124656 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 2E0281A00B7 for ; Sat, 27 Jul 2024 22:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722119525; bh=hdXsvGZr7G8WVI4l5CvtGme4FlcyjfXcxoHzC36eI+4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=QCu3LGdW4RuMRog1C5llr6HVpbO8ZoDQQUzAO/21++jUcpIQfAkQqL/o3FLvF1oin 8bjZZCdNpjwE0xFb29+dcoWTSbFo/X8+IGyfE1Tj/BtFCyaymZ7MkGm1FKIaLXHkzm 0qr9NvHHAl9NHTD3cCj/C6A1ig/uCOOj+QRvDzeCfd3Yp+xzJ7eoHOsH3JQU7+O/zG IWjMd+fkLTAps5K7v3vsKVpZviQ5LSGJ41t0ug1otBQO818KbjZoI/1Vnk4Rd8eudO pA/07rLHaa6EFpfthygbtlVuhUo9fUmE2GpQCAEigNfqM6kuNI1Wja6u+ulztZnX8H 1g1qpf/LljBkA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65DCF1801E9 for ; Sat, 27 Jul 2024 22:32:04 +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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from ageofdream.com (ageofdream.com [45.33.21.21]) (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 ; Sat, 27 Jul 2024 22:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ageofdream.com; s=ageofdream; t=1722119424; bh=hdXsvGZr7G8WVI4l5CvtGme4FlcyjfXcxoHzC36eI+4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=UrZ+NuDCEW4LUa2d1uSn3iT9jiC7/uaZMdZU9D1bBxBsGvxguXFRSwR+E4CGV2UXF eKdUUz53osfjbNERQnJJGY4PLdLAJwIbRKgE+DpmK23Q054IjNGmjj1TBEDhWgeie7 NvEEyxxpuAm0Xp+S5vPw6UK+yFkv+tTaa0btfNwdv1hOWI39uZ2Ss8AjHN9gpjut5l qdV5hsh/uj8fWJ9PoKJDExGwmXJ4IAGES7g7vwCpL0HoXvCHOyDRASBhGuDTwBfwz9 NpMFTozr1uQg7alvLEn2e/Y39/2vwUGx9nH4ETRLTtpEURC/knsZ8+4pXrRSOZOmyd MghsczXFAVxaw== Received: from [192.168.1.7] (231.subnet-69-85-112.ellijay.com [69.85.112.231]) by ageofdream.com (Postfix) with ESMTPSA id 17C8D279A3 for ; Sat, 27 Jul 2024 18:30:24 -0400 (EDT) Message-ID: Subject: Re: [PHP-DEV] Should PHP reserve a namespace for built-in classes? To: internals@lists.php.net Date: Sat, 27 Jul 2024 18:30:23 -0400 In-Reply-To: <86b7e340-6ca9-4b3c-af0a-a5c2d1ee68c3@bastelstu.be> References: <76559a9cd5eca4bc6799ed9612ce15c28cd7cb0a.camel@ageofdream.com> <95f6046a-4acf-4f8a-a850-a23650c0c6b3@bastelstu.be> <927705b0404e70b0f0ade4a3354b2598d7c112f9.camel@ageofdream.com> <86b7e340-6ca9-4b3c-af0a-a5c2d1ee68c3@bastelstu.be> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 From: lists@ageofdream.com (Nick Lockheart) > > I think a better solution would be to have one namespace for all > > bundled classes, so that a specific namespace is reserved in > > advance. >=20 > Needing to prefix everything by \PHP or something like this would=20 > provide for a terrible developer experience when using the standard > library. >=20 What are people's thoughts on requiring a use statement to make built- in classes available in the global namespace? >=20