Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111556 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 25379 invoked from network); 16 Aug 2020 11:08:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Aug 2020 11:08:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 300311804AC for ; Sun, 16 Aug 2020 03:09:09 -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=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-mahalux.mvorisek.com (mail-mahalux.mvorisek.com [77.93.195.127]) (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 ; Sun, 16 Aug 2020 03:09:07 -0700 (PDT) Received: from 888c832afcdd (10.228.0.216) by mail-mahalux.mvorisek.com (10.228.0.4) with Microsoft SMTP Server (TLS); Sun, 16 Aug 2020 12:09:05 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_caad57ff9c208b59dc9a4de14a2de848" Date: Sun, 16 Aug 2020 12:09:04 +0200 To: Benjamin Eberlei Cc: internals@lists.php.net In-Reply-To: References: Message-ID: <19b07980078c167ce06f5609c6ce6f9eba4cacb0ea261013aa6586374bef5730@mahalux.com> X-Mailer: SAP NetWeaver 7.03 Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: vorismi3@fel.cvut.cz (=?UTF-8?Q?Michael_Vo=C5=99=C3=AD=C5=A1ek_-_=C4=8CVUT_FEL?=) --=_caad57ff9c208b59dc9a4de14a2de848 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed I have one major issues with the examples. Syntax Side by Side: The properties are annotated (with attributes) inline which is the opposited of common usage now (with annotation). Discussion on Grouping Pro/Cons: But since this depends on the coding style the user... No, this should be consulted with PSR people and their recommendations should be discussed there. Enclosing Delimiters - Complexity of Attribute Declaration: there should be example on left side without and on right side with - I do not see how delimiters will actually help Discussion on grep'ability - the arguments against are theoretical, imports are not very often aliased, this is clearly a con for grouping Excl. the <<>> syntax (which I think is not good because of generics that will come sooner or later), all other examples are about good prefix for attributes. So I think we should discuss the best prefix and separately if we want to allow grouping with "[" or even with "{". The most prefer syntax can be @: for ungrouped attributes and @:[] for grouped one, but this combination is not discussed there. With kind regards / Mit freundlichen Grüßen / S přátelským pozdravem, Michael Voříšek On 16 Aug 2020 11:36, Benjamin Eberlei wrote: > We have updated the RFC with all (hopefully) of the feedback from this > discussion: > > https://wiki.php.net/rfc/shorter_attribute_syntax_change > > Most notable changes are: > - A new section with several subsections on the benefits of a closing > delimiter / enclosing syntax. > - A section on grouping pro/cons > - Inclusion of @: as per Theodores request > > We are looking for further feedback from the community. > > On Tue, Aug 4, 2020 at 3:46 PM Derick Rethans wrote: > > Hi, > > Out of Banjamin's suggestion[1 [1]], I've updated the Shorter Attribute > Syntax Change RFC to reflect that process: > > https://wiki.php.net/rfc/shorter_attribute_syntax_change > > Patches and comments welcome. > > FWIW, this has an excemption from the RM Sara as per [2 [2]]: > > * Shorter Attribute Syntax Change > - Joe/Derick - Please make sure this RFC moves along and reaches > conclusion by beta3, as discussed previously. > > cheers, > Derick > > [1] https://externals.io/message/111218#111261 > [2] https://externals.io/message/111286#111286 > > -- > PHP 7.4 Release Manager > Host of PHP Internals News: https://phpinternals.news > Like Xdebug? Consider supporting me: https://xdebug.org/support > https://derickrethans.nl | https://xdebug.org | https://dram.io > twitter: @derickr and @xdebug > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php Links: ------ [1] https://externals.io/message/111218#111261 [2] https://externals.io/message/111286#111286 --=_caad57ff9c208b59dc9a4de14a2de848--