Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111623 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58455 invoked from network); 19 Aug 2020 09:59:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Aug 2020 09:59:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5AA3F1804AC; Wed, 19 Aug 2020 02:01:15 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, 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 mout.gmx.net (mout.gmx.net [212.227.15.18]) (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; Wed, 19 Aug 2020 02:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597827672; bh=RcemiuKkcMyAUvQDj5hM24TxH3ufPu4WujQrAgeROgw=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=drNXnmI7+GgOQ8zMG1cvEKZdPeFNAVOzwqAu2z8c3lh49/a6xxBAZxPKCRNeTYOsF MH5CXTCelF8O71j8Vg/HSGH0He+cPCtqHuPH+/a3HG0uphTd0GD4QQtIXDisfe2OxK s+b90s/F9NP9uO1N9Zxo0xnvxlNjbkJCJzAUiy5o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.120] ([24.134.51.41]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MXGvM-1k9sWP3sJa-00YfPZ; Wed, 19 Aug 2020 11:01:11 +0200 To: Benjamin Eberlei , Derick Rethans Cc: PHP Developers Mailing List References: Message-ID: <642e48c2-eccc-19d8-99fd-888062a6232e@gmx.net> Date: Wed, 19 Aug 2020 11:01:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:6G7MD0tEl1O2WGubTAI8/TZvodFSAipNdxj8tTCCn5FcanMj7sg +VS54ICVjIafLxkWP3fsYaF9TA5ga0kgaxCjVlHrVIBbd3rpmxtTjq1fHR6uAaqlriRS7LU CEx4wf9nGv7RqvyUuuM4ZotQzPb9uug42U0bkkGwXd0jExRhvYjJj3rIKiliPhTShf0d1CI t1q8N1CdMK8KhCdJpis9g== X-UI-Out-Filterresults: notjunk:1;V03:K0:PcoSPialNdQ=:fpcqZKfijKhiqDg+flpCA/ DneX4Qdho8nvwl0CAN44cOiqsOc0EnbEZdzLzwCd+cid8ygchmR4EMkpEQeLiI5vgexGO2fXE nhMDeUsjaXHcGa7AMZJCsxzgvOUdKlRDNrII7hkJpGLSwFL/Bp4wv/QHouSXcpGuhZaVXTzx7 Waax+AFAQXoQG6na9baz3B37bSe4sV0w1GzZ6oOAvMI80daRRtwOcZT8uY5KeiYgal1wgJ3bJ SmZdAKljF2TtOXZilIZ5D545SR1V1Z4VyA63vAOHQVfdllmoz7lT9yg21cj/sfW5/cb6wY41B T579P9JUa07MqTSGW/tX4JYN/T7lyLuID2p4ULSP+I9596RgS/3FhCzbHvOz/pxrtp+0BiUoB L6aS/Pc78AgasjVTm7SCZGgzrCNxNkvuLvqaQqqpw48e87z2Pk1Upi0Z3SS8ordXAbgjmdvFc NSQt+hSypfWGaizGFST4PR8vn08W5ykdj0CS9sbvSBnRtIufc8sW7hqvZy5OKHG4Rqndhyqh7 SZk2LtgoI7DOfMhnJZUoLdBMQIlAZEuDJfWoR3DvfXddaIuYAIm6h/j/mfdg9HhE2x+grMZ7o dHDdUsELRmZpY2+hKtCw191Lc6xfKrhJl5tR6M6n1oWPrI5HQsZPkeaV9x5PVGfFa2kY6ofzJ vGl8Hvt2pCsrOnL7Rrvrh+yQa8gPqokfVB6WcaDZAhOxNjEerajkbRAVdiusVHVIYfGqetdMo ng+BFA0Mkvrq/WFBym+Dc4e6P7ZQVg772p7AMofkAyZGYp4cJgb2WtVCviQKlBMad8paqqkzT HvBEGchF6g6fNcksVr6c9aSPoFo4AhlKFsqwWoRxUWZavLDKBAAwQFzhwrsbrYqj01GbNZ/Bo kgUgCjhdUW5Mwdg37KIokmX6k/YUFzVrvzPD2FnEsc+EEHXt4XiAxh4adH1i4z0KLCIw+tXDa MSjm3zvWHp2evkeD+TrsMTXlr6rJLKVAtqLpQ21kDjzprcwS03Y2//+XRPs9cOiMUX1gBsB4T aHBQSQzBTDmZeLFail9Up3A9/KgegUy+tpUrCBriEgWlEqhUlhwOpC32p532gGhZHU0WHw++3 1PP5zLbE9098VtSm/doWy7ngYSJpJgNVUznmPu+bAb0IYCE+gdFBmYRH4ejJN5f6BxSOIyQ69 0ODeTy959WlaXRGjG6Zejj8IPU/OMEpdwz5EX8uUvF/4RviElB4vqI8RJ1KtK6p5hsKXso90F WfSuNJb0pxx7p6BBf0UprfS0AtfRdD9R8Sp7ECw== Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: a.leathley@gmx.net (Andreas Leathley) On 19.08.20 10:47, Benjamin Eberlei wrote: > One last change that I didn't see yesterday as it was on Github and not > this list is the addition of another syntax proposal @{} with the same > benefits as @[], a little more snowflake than compared to other language= s, > but without the BC Break. I mentioned the benefits of @{} in an email to this list on Monday, with the proposal to have both @@ and @{} as attribute syntax, so both camps could have their syntax (one with delimiters, one without) with minimal BC breaks, and leave the decision to the PHP developers/projects what they prefer in what circumstances, because there can be valid reasons to use both - I probably would use both. @{} could be good to define multiple attributes for classes/properties, @@ could be good for short attributes or ones very entrenched within the code, like function parameters. The @{} syntax could be amended in the future, so this would also be "future-proof". But I guess the division about syntax is too big at this point to consider an approach where we just offer both types of syntax. From a PHP developer viewpoint, it would be preferable though.