Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111484 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 19332 invoked from network); 11 Aug 2020 21:09:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Aug 2020 21:09:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E15DC180502 for ; Tue, 11 Aug 2020 13:09:21 -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, 11 Aug 2020 13:09:21 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A1F205C00EC for ; Tue, 11 Aug 2020 16:09:20 -0400 (EDT) Received: from imap26 ([10.202.2.76]) by compute7.internal (MEProxy); Tue, 11 Aug 2020 16:09:20 -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=DL5pt/ 1lKJlAmck4Y6kVeGLQvxdXJNf/+hH0fn7mhR4=; b=XkaZcjBjx0/zCPKxZ7QJ0N zCB9ysqgzzxMHxTHEdh7rLPjT2LrJXBDDQCu0F8CBvMd2UTx2Rg4gzHfq5OY4Q44 0X7XjnA7LG2QjSPyKw2nx5n+Tba4WPkrsXD5Qn79V9K7JVIf7k6XS8J/fq/aaH34 vXnEWhZ/PZ8maVLk0plkVrxH3HbZs8adFhv6Don9JvHetuqc7QV7p9neQjN3wQEn 9jENtXkhM6nKEGm5b52Bi5pa+SFAWMhu1fIWJ7BjTFYs4PJVfl/zIlQH/+1C3bGK TiXQ2BC1cBR91/o5bR6zSynMm6uelE20UhGyC8znfSvFsEA2GZtwEDf77fh9VKHA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrledtgddugeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeglefgkeduiedvvdetffeujefftdfhjeeiveehgfff keduveektddvledvvdfffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id F26FA14200A2; Tue, 11 Aug 2020 16:09:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-143-g3d58b38-fm-20200806.002-g3d58b387 Mime-Version: 1.0 Message-ID: <1c28ea01-d139-43ba-8efb-1de366a61fc4@www.fastmail.com> In-Reply-To: References: Date: Tue, 11 Aug 2020 15:08:46 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: larry@garfieldtech.com ("Larry Garfield") On Tue, Aug 11, 2020, at 11:54 AM, Theodore Brown wrote: > On Tue, Aug 11, 2020 at 11:36 AM Rowan Tommins wrote: > What will you grep for if you want to find all places where the Route > attribute is used (but not some other class named Route)? I'd go to the Route attribute class in my IDE, right click, and select "find usages." I'll be honest, 75% of the points made in this thread seem spurious to me, regardless of which syntax they're supporting. (FTR, I don't have an especially strong opinion either way other than marginally liking having a closing sigil.) For the BC potential of #[], as a library author it doesn't make much difference to me. I will likely add attribute support to Tukio soon after PHP 8 is released, but I'll just be reading from the Reflection API if available, in addition to the existing mechanisms I have in place. Which syntax a given listener uses (<<>>, @@, @[], #[], etc.) doesn't matter at that point, only the reflection API does. So opt-in attribute support can happen regardless of the syntax. (I know, I'm one of the people who pointed out the BC potential of #[] previously, but at least for the use cases i can foresee it's not actually relevant.) --Larry Garfield