Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111221 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81217 invoked from network); 28 Jul 2020 16:29:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Jul 2020 16:29:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 216811804E6 for ; Tue, 28 Jul 2020 08:25:38 -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,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-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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, 28 Jul 2020 08:25:37 -0700 (PDT) Received: by mail-qk1-f174.google.com with SMTP id g26so19036184qka.3 for ; Tue, 28 Jul 2020 08:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=1qk8yuxAiBo36zpLp5rZtSBUzUQFPXZRA8mZYmpnI54=; b=UWzAO3Y0Whwo131WQ/bPNLEO8IVUX9+LxlewwCDSY7TuTohIvH4oVde6tEadhm13xo kS4EvUyLU1Gcz/NVCuEuCQDPE4kk102f3Imcig8PvJ2mfqvYRLCAAjfIp6EjMKuze+lV zFVTNlV0a3QbmjUg2rJDi7yxz8hPyC6rxeOspXreesK/FS8EjYuSVS5MumvY3kwENwqr RKOgG27gE20JAvvK59NKs201xDqMAiRX63o7naCLJ33M61Cr9FK7GmrsXC9uy4I6vilA gsbm2CBSEpVb8Q6xH8T8vy2WER4Lx2wM/OtGB5sKov5MW5y8AjS9uUkwS/dnuz9FnVXq WIlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=1qk8yuxAiBo36zpLp5rZtSBUzUQFPXZRA8mZYmpnI54=; b=j4jAHtHbsMXSb1sBIWJ79mMowHSymj3+PKWx5D5Y9S5fOAhEs7yqH9oME1oAmEd/SK AR7jtLHmoXkFeMPNlqCmcY1AfqT4ZbtHIY1EZypEB6+atOv+YjN3oQHb0ovnwcrD0eG1 xfVKlRBBwEd/gEaStMBam/9uGk5KrVBKkBSrxmSGPuwzwG6c+ZL3g9DzyXnCbTGtqseY dfv+aHK3m0x75qHe1REawxAztL1ZD8Pan9EfMXJmy5eMgnyLpZGkiFJcXiATG23/xyJ8 /ZvLWxfjAIFs+ImPlxI2ecvn0ZKkokTI1AcLtUDNLTeWsz9v1Ub5bM70wF+RxUcddrfC RjNQ== X-Gm-Message-State: AOAM532tvxA34ZqGsSfVDCxk+zOA4q1QhRhTWdnF2Bd0Iw6lPKi6Ll7o GZko1LllWsyAQWRoCtBVTdL8Vzd1KS8QCw== X-Google-Smtp-Source: ABdhPJx2O69HM54qW8N4PiqxwmNdMEh710XjCjm/UYoLSw0dDDGYO4bFPgjfGGkCQA5kvq7OJ7bS5w== X-Received: by 2002:a05:620a:2231:: with SMTP id n17mr27426772qkh.37.1595949936839; Tue, 28 Jul 2020 08:25:36 -0700 (PDT) Received: from [10.10.42.56] (h69-21-156-190.lvrgtn.dsl.dynamic.tds.net. [69.21.156.190]) by smtp.gmail.com with ESMTPSA id x28sm2095023qki.55.2020.07.28.08.25.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2020 08:25:35 -0700 (PDT) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_5AA30C7A-1C00-4EB4-ACBE-9F4050520F0C"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Date: Tue, 28 Jul 2020 10:25:34 -0500 In-Reply-To: <20200728171343.2e40e2f6@mcmic-probook.opensides.be> Cc: internals@lists.php.net To: =?utf-8?Q?C=C3=B4me_Chilliet?= References: <20200728171343.2e40e2f6@mcmic-probook.opensides.be> X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: Re: [PHP-DEV] [RFC] [Discussion] Shorter Attribute Syntax Change From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_5AA30C7A-1C00-4EB4-ACBE-9F4050520F0C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 28, 2020, at 10:13, C=C3=B4me Chilliet = wrote: >=20 > Le Tue, 28 Jul 2020 09:46:38 -0500, > Joe Ferguson a =C3=A9crit : >=20 >> Hello Internals, >>=20 >> I've been working with Derick Rethans and others (thanks all!) on a = Shorter >> Attribute Syntax Change RFC which outlines reasons why the "#[]" = syntax >> would be preferred over the currently agreed upon "@@" syntax for = Shorter >> Attribute Syntax. >>=20 >> An important part of the research that went into this proposal = demonstrates >> how "@@" will make handling attributes more difficult for = PHP_CodeSniffer >> (and similar tools) and shows how the alternative "#[]" syntax is = more >> friendly for these tools. >>=20 >> You can find the RFC >> https://wiki.php.net/rfc/shorter_attribute_syntax_change and I'm = happy to >> answer any questions as best I can. >>=20 >=20 > The text uses =C2=AB instead of <<, it=E2=80=99s confusing. >=20 > It should be made clearer what #[ ] has over << >>, which does not = cause any BC > break. >=20 > C=C3=B4me I don=E2=80=99t know that it=E2=80=99s valuable to spend time discussing = advantages over `<< >>`. Isn=E2=80=99t it clear from the previous RFC[^1] that `@@` = and `#[ ]` both won out over `<< >>`? Cheers, Ben [^1]: https://wiki.php.net/rfc/shorter_attribute_syntax --Apple-Mail=_5AA30C7A-1C00-4EB4-ACBE-9F4050520F0C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXyBDbgAKCRCwLZeYnIwH Gy9sAP9/0w7FtMPRLkoyMhwON6NXoipzazbwc38sqcpkW4D0QwEAjISAMGCdnH3m m++Z29tW+oFgJlXSy+ASQEINneC6L1U= =kOHg -----END PGP SIGNATURE----- --Apple-Mail=_5AA30C7A-1C00-4EB4-ACBE-9F4050520F0C--