Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111574 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 34865 invoked from network); 17 Aug 2020 11:47:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Aug 2020 11:47:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1B5191804AC for ; Mon, 17 Aug 2020 03:48:00 -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.17.22]) (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 ; Mon, 17 Aug 2020 03:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597661277; bh=tZRcjTuxFpdrsiYZ7RNuA5Lb2LXsdcSX3xUkRhhne9s=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=DF/+ZVkls9ToCzCvXKuFNEzgniUVdKZr/XxgnePfzAc9WkRXQ8Am9ETqRyvEM5Fr8 WUAVJCPrkAGX2ee1bhI2r7kgRaCDIvxiq4/BGQZgseAxno04giBM2wvpOLDWrIvdDe jcHLs0dgPGPptKVEF3FvyQnjhyuoVPkll9lrf074= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.120] ([24.134.51.41]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MhD6g-1kc1oV0TH0-00eMds for ; Mon, 17 Aug 2020 12:47:57 +0200 To: internals@lists.php.net References: Message-ID: <4fae771b-7e02-f34d-48b2-345d7c0cb09f@gmx.net> Date: Mon, 17 Aug 2020 12:48:12 +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:YXLHGSijjracIYqfuNLyNnDx5XldpMHy9nNYd2yUpw3IXutBFR1 BLmVdbzcqqF68ZukKOJkh19+GBfjuSI7AqpLaRcb6Eav+gwBfwGdszuh263fKORfkoojJ3W dZa1jYIx69dq4kUmnlVKkbXYgkJGqdraY8UpglxfAfL3gN123H9d5FjV01NBEkWMs5lV94S Y+APScIYrB49F2LK1LKWQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:np8J7XTacpM=:wF88bpe9MhWJYH8xlfhxX2 M0KTFZvYABYSBmkA+WIGUt1SeAG44Gkawqcs13K2LeTBsXK//+CRNf5pcxZMfKCB3+KApzrpe PyzqUzkTyQV0w4x4/W4bqvZ5wrUbjNHIK1r/0DPAA0Sg2XXNQwBEuvcbk5e21uSHuhnl78YZs uVTWpfj5hXZ7CJMky+4GFn8NUfI7r+9pn5uyk6qC2gNomwgcOqufb1Ljyp8tbSLG/KmUvtY4o HzYR94kFoTqNjzwoxDHU9nwrnys3jkTUvhczxrswCWk/EGyLbkANC/tTzlUsZJfbYtc5iahhJ fnoGApjVqWqB/BQ4UVTYjMul6c9+6rj/NPtWKQJ1HxTXdQMHDrg1EvPNILOG8nBmR8WZ3Crwy ZXvn4FnOmM9MnLTcZMOs1sS/HbTUh5HJbFCM/IUuSa58qAAjXuI+8uquXCJq52S0C4oCvT6DA bmTHqZgYO0FrsbzhD6PPm3CBdJprT6DKtFZtwJ7/NqBgIkLztghVhYzD+GxqRBEtuAHYvAgoe 5n8k4R/ZI0J4oIM9ZFdiBQjgGgUU4k0Q0ljmd3pSawRJpEpdZGeH4IBot026lfoJEWyzzklc3 Fd+ztZijAWGieCRNF+do0YzK/od7bee0ngd2xHFKXHEh+lNWFJBn6mwXNii0/0K7dhIPO2C7k HpdXoMX9a/JN/3451fUUnyX7BHjRfEm2U50UVJuv5Pw5ZZ4aDPQvsRrxJnBQZWJwS/9BSh2Cr M/BrJF8bJMsf1DCZhXdhOZuQ/R+juA2Hg9pAxmRPtIxuXR3bHhGXrQNrYK7I1IPPE1fNTwolq B7HlC8S+aSOaBWf9tCERz9ZNJ3//py+FUp1v1FL1NQIL1nNRvQx9D9J2PtDkqZSwcUe6ml6TE JAELk47Rlvzu+Qj1KiuRUZ9yVEDolSNCGF36PGOtUGxQjtyH/wTaKLj8TKPKPlZ4fQZYn15IL HfQk0yvY1/F6WF9MZOIXUAti6i7cOJgCsW47BlhwNBHQJWUUJ9359Re8jMM/cxnabMyhASv2c EMSK80s5L0+6y5O2JO9lfaTZZi0bY56nZUP/brnxIndcDlCP4CVoq3/A89jW+9tmFtBfWBO4w V+v8IAbptKi3yZexx7odQ61uoY/GqIYXbjgI+Rp/f8qXpVYgNbuZhX5kQOkdF0MFIeX4f/qOF 7ZLy6utz0ABRqhDq0nxe6ALOt47eRHs7CmtDw1eKndmiaAglXCUtnHRDGN1WZNy7GokYCpmzA 1A9n8+2x+D2iBrLK8F32RuRqhMspYKk0lVVbgJw== Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: a.leathley@gmx.net (Andreas Leathley) As a possible addition/discussion point, I only noticed today that @{} is a syntax that has not been mentioned yet, also not in any previous discussions about attributes as far as I can tell. @{} currently leads to a syntax error, so there is no BC break, and {} is common syntax for grouping expressions in PHP, much more so than [], which is an array-specific syntax. Would it be a possibility to keep @@ and add @{} as a second syntax for attributes, that can be used for grouping (for situations where that makes sense) or other possibly future extensions? Then @@ would be a good syntax for simple attribute definitions, and @{} could be an alternative for people who want to group them or if any more complex attribute features are added to the language later. Because both sides of the "ending delimiter or no ending delimiter" discussion do have some points in their favor, and it seems quite individual what each person prefers. For a language it could be beneficial to give some choices to the developer instead of foreseeing each individual use case, and maybe attributes is such a feature. I previously thought about suggesting both types of syntax (with and without delimiters), but felt the current options all have too many side effects to choose "two side effects" or two BC breaks. But the @@ BC break seems the most harmless BC break of the bunch, and @{} does not have a BC break, so these two option might be good together.