Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111318 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78815 invoked from network); 4 Aug 2020 15:21:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Aug 2020 15:21:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9CAA7180511 for ; Tue, 4 Aug 2020 07:19:24 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 4 Aug 2020 07:19:24 -0700 (PDT) Received: by mail-oi1-f193.google.com with SMTP id v13so19833031oiv.13 for ; Tue, 04 Aug 2020 07:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lUj1V1AU67BdFgf0S62W6mIl+vKALVwJBUXqIUsH+IA=; b=Z3tvhEtXQ027+peuMA2gcQ1bBtDdM9v0VaSiJjxIdRjABq/Bw3sCQJn0b5FcO7m9PH menKWJdPqGl9xsQTPiwqz8cdoKpsES29rQYJP/hgTerYRBQm+lRqDF51JD4ePAO7ftKa pd0UbH8i7UrMqvcCJvQTV67BII+dMFFKBntDwRYwab/R7vT2n/f/xEUHoYw3R0Qymoq5 1qi5cnAirD0+d0sV7JWBJJTwDx5L4AMF2LvV1Jl5JbFvmFzt82e2T7oMevZEilPpatsE DWahSfvyt+zXLhSYq6NOCrzmt3A54sIVk3gcMT9H3giqmxBn2CCAKnA1R4kfY+0XdVxP RioQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lUj1V1AU67BdFgf0S62W6mIl+vKALVwJBUXqIUsH+IA=; b=kQ3XckXbTfP5qyuMbZIrfTDCaEVT81Y0OdLvd2W5d7S16Nysu8/fI0DN94IKiL84NX o/F3sRBhdw/eZx1gqyVuwxjyAonLhc20FReYVTlsx6KZd7hnvsSCMoj1qQOE+MB+fRvx ND9MQOEtBKe0RfgEQQntnNrnt4GBdPbyB5QpwM2M5Zkp0fEYjY/ieM3sTUMIL+Hjnk+0 7wGoGxjane1fwgLNvV0YhPy9IuSSq8jGpEv9TEPnTUZFQDJ0EcDpRfVZbYXysfY8nuFe 63Zt3aRo2D9S5H0gXDr6DXfZyNbdh9aD2/Hg2KPbkXPs9gPxDSBDAHMwfs1HKBCWw7L1 A+5g== X-Gm-Message-State: AOAM532W4IBOXsdzbWJVw9zQ27CU9wR64GvtIjyU2QSpANw1sei6yfI5 dkgZffk1Gib+UOt9OZLG/KwO4TNBYad5SMKywR10W6B1 X-Google-Smtp-Source: ABdhPJzmYffR58wV6dWFNd9c4PTFQYzP+mPtjskSzEFI42lXhjvxU/77tYb7RyCdRvIRszBNlQv0eYJhyTSgnFt3NkU= X-Received: by 2002:aca:6708:: with SMTP id z8mr3534549oix.96.1596550763608; Tue, 04 Aug 2020 07:19:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 4 Aug 2020 11:19:10 -0300 Message-ID: To: Benjamin Eberlei Cc: Derick Rethans , PHP Developers Mailing List Content-Type: multipart/alternative; boundary="00000000000021824105ac0df170" Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: david.proweb@gmail.com (David Rodrigues) --00000000000021824105ac0df170 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Suggestions: $(Attribute()) (available) $[Attribute()] (available) <> 2)>> (like strings escapes) About $() syntax: - Number of required characters: (2+1) - Has end delimiter: yes - Allow grouping: yes - Forward compatibility in PHP 7: yes - Breaks BC of valid PHP 7 codes: no - Used by other languages: no? - Familiar with Docblock Usage: I don't know - Difficulties with Userland Parsers: I don't know And my another suggestion is use a more verbose for now, until we have a good consensus about it "using attribute()": - Number of required characters: (16+1) - Has end delimiter: yes - Allow grouping: yes - Forward compatibility in PHP 7: yes - Breaks BC of valid PHP 7 codes: no - Used by other languages: no? - Familiar with Docblock Usage: I don't know - Difficulties with Userland Parsers: I don't know Atenciosamente, David Rodrigues Em ter., 4 de ago. de 2020 =C3=A0s 11:03, Benjamin Eberlei escreveu: > On Tue, Aug 4, 2020 at 3:46 PM Derick Rethans wrote: > > > Hi, > > > > Out of Banjamin's suggestion[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]: > > > > > * Shorter Attribute Syntax Change > > > - Joe/Derick - Please make sure this RFC moves along and reaches > > > conclusion by beta3, as discussed previously. > > > > In combination to the existing proposals we already voted one, this RFC > includes a fourth option that has not been discussed before, > and could be the compromise we are all looking for :-) > > @[Attr] combines both the with to use the familiar @ of many, and the wis= h > to have a closing symbol/termination symbol that many others have. > > It does not have the downsides that Tyson found w.r.t. to #[Attr] being > interpreted as comment on PHP 7, but that also means its not forward > compatible like #[Attr] is. > > It provides a small BC break where code written as @[$foo, $bar] =3D baz(= ); > or $foo =3D @["bar" =3D> $baz]; will not compile on PHP 8 anymore, but th= at can > be easily > fixed by writing it with a space between @ and [. > > > > > > 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 > > > > > --00000000000021824105ac0df170--