Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111315 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72744 invoked from network); 4 Aug 2020 15:05:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Aug 2020 15:05:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B83AE180537 for ; Tue, 4 Aug 2020 07:03: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,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) (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:03:08 -0700 (PDT) Received: by mail-wm1-f65.google.com with SMTP id k8so3054441wma.2 for ; Tue, 04 Aug 2020 07:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UQn4sim6OfaPZa0e6vVxH5T6f/qENwEiEypvGoS+mtE=; b=bDNfgFXqC77VRMi5sR+p/bCd8Y38J+bCa1NWhxOroFs/VIa8bJJD/WpLRLkOOyh2zG VZyuTYHnUeGO7L+xZ2hAa/V1+FrGyLeRrQtxw9l+AQsdf4427AzCanXRI2MwI2rUvsn9 gzNaVSRqkbk/Alh58L38fjjDyWRYiJ3lTJ57S5g32ll8KnVIRLfnvt0Jg1MVll59WHwJ hUq46jYTSme7YKllPZ8BzpUHnMPpNf34W3vDMVHnxFIK1KTBevHm10E7D58d9JeaDDh9 7EbDyr186ZKMPIDE1BcXJjVyfyKPzm0wm02w96fj7LukO835TkJk7Fa+eEUSUiMV6+r7 Pbug== 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=UQn4sim6OfaPZa0e6vVxH5T6f/qENwEiEypvGoS+mtE=; b=gjcGflkicbOSZwu4GLuR2br5tD7dDyBzYRvYTgkftOlTgNOaTEmvBRCmwqb2Bv/PnN EjZUlTMOXTNy1G0pqqXE3HOP4IE3QkP76/gW4keP94L1tGAHZU9/AKZ07FSQR42TdpfI ij6q+DhCDmgxVu+GpyVrwkEZUhDJuNBdew5lPO4yO+XNWaUf1qCh1a3VCX/IdETu4dfU uyGI4mLlOijqpixF24ND+21IwwoAW+sXDash+Ek+vh3yHpSSTO3BmZ84dS2prQoLHkH1 mrNQtXhJP0VdJrL2oGRQBxtPfSe/q2PjO8Da9x/QhxaM9dP+f5raBz8V/rabYVsDzqCz KYHw== X-Gm-Message-State: AOAM5310RZk++WVBR5Ddv3GB8wtsvezV5Z+xIGEc+TSzeVGmqtIWZBL9 sH3OwWo6bfeednYEOCroynyit8PEUMuVLzk48RGHGFITV1adTg== X-Google-Smtp-Source: ABdhPJxpvrbhEGeZ7Lv7NVOS7eC50/OXTjVPXzrfVTBCnabBfyJdYsDTQ0c58ePK90BjbR316hG9SfcqaaWycGaSf9s= X-Received: by 2002:a1c:b7c2:: with SMTP id h185mr4641852wmf.168.1596549786514; Tue, 04 Aug 2020 07:03:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 4 Aug 2020 16:02:55 +0200 Message-ID: To: Derick Rethans Cc: PHP Developers Mailing List Content-Type: multipart/alternative; boundary="000000000000e44dbf05ac0db6fc" Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000e44dbf05ac0db6fc Content-Type: text/plain; charset="UTF-8" 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 wish 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] = baz(); or $foo = @["bar" => $baz]; will not compile on PHP 8 anymore, but that 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 > > --000000000000e44dbf05ac0db6fc--