Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111092 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5679 invoked from network); 21 Jul 2020 13:45:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jul 2020 13:45:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E4D401804DA for ; Tue, 21 Jul 2020 05:39:49 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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, 21 Jul 2020 05:39:49 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id AE6885C0178 for ; Tue, 21 Jul 2020 08:39:48 -0400 (EDT) Received: from imap26 ([10.202.2.76]) by compute7.internal (MEProxy); Tue, 21 Jul 2020 08:39:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=CqrUM3 xyo1A7lmyXBiqvUeLY1EuYMvIlOJmra0lgO2Q=; b=q86JfVf3BVtu7UxVmIjxoA 4A2TpUHX5ltmG95zzjrx+aeFlMA6OmBgtavrmo2xGxEtsATd5whJRtjLalYkFT2m LHN9jaity2h9e095KCY80b1WxLv3NjlFKoOFaRdLgbfgGXspUK6ZeOqZ7Pv2H91f cU8akWjUuxfkbTME2KP7q4EQzYaBpIfoIbuZLDyZLSUpYRSWoPylThTk4A89W4p2 PV42IKKM7eLQlKaOORX9V7KbNyyL+GKczW8g+aGjJgY6zl86jHGg6Dc5SpTF5KRp FSG7wU+z2QS3eqf2EBk6N3WIimU657EdojVml8mMM+Nb9Nt/BIFewwPj/CXPvrAQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrgeeigdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgeelgfekudeivddvteffueejffdthfejieevhefgffek udevkedtvdelvddvffefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4C02C14200A2; Tue, 21 Jul 2020 08:39:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-92-g11c785d-fm-20200721.004-g11c785d5 Mime-Version: 1.0 Message-ID: In-Reply-To: References: <0771c3ac-53ec-4a7f-a4e9-6ae3c9b1f1f6@www.fastmail.com> <5f163887.1c69fb81.d12d9.299dSMTPIN_ADDED_MISSING@mx.google.com> Date: Tue, 21 Jul 2020 07:39:27 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics From: larry@garfieldtech.com ("Larry Garfield") On Tue, Jul 21, 2020, at 3:31 AM, Rowan Tommins wrote: > On Tue, 21 Jul 2020 at 01:36, Mark Randall wrote: > > > So either you fake namespaces e.g. PhpToken or you trample on userland > > \Tokenizer. > > > > > While you're making a reasonable point, I really wish people would stop > using that particular class as an example, because I don't think the "PHP" > in its name is a " fake namespace" at all - it is an object representing a > token of PHP source code, and thus a PHP token. Even inside a namespace, > there would be an argument for giving it that name. > > Regards, > -- > Rowan Tommins > [IMSoP] To use another, then: \AttributeDeprecated vs \PHP\Attributes\Deprecated \AttributeJIT vs \PHP\Attributes\JIT \AttributeMemoize vs \PHP\Attributes\Memoize There's a very strong potential for php-src to add a number of attribute classes, which would logically have very generic seeming names. Getting those out of the global namespace and into a logical organization would be very good. --Larry Garfield