Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110374 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38362 invoked from network); 4 Jun 2020 15:48:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jun 2020 15:48:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0AF691804F2 for ; Thu, 4 Jun 2020 07:31:06 -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_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.64.0.0/10 X-Spam-Virus: No X-Envelope-From: Received: from EUR06-VI1-obe.outbound.protection.outlook.com (mail-vi1eur06olkn2021.outbound.protection.outlook.com [40.92.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 4 Jun 2020 07:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h69i+wEdC5p9DQR3g8t6mzNh4WKJnzpFoZHaN1uDRDWyJhzcTwOcZsvc1FvAyQj3a9coUKT61Lu31Hjvtbhc4spFuppCykKddHn1mSMXaFg0PX9hjCiVmoT2Za3kENtfC1fX676qMQx9D3s9bohUsCNrOkwwcBi0mPudX9dx0JAsigDjaYH64O83fm6MUskM+PUo2c/+Z6pqpRfPR+ZQ+WmcN0x0MMM3PQoidEvujtiY07yxI/j3fAMm+C/imYo79t4asCwck5zFnDH6+wJj1UACn6MQuYixWjkOsnYVRtqJ9E0IyBFCO4GhVXUW4yQYtGieF92ws/ooGV6P/IrD6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oxNwd/vRwe0rZl+qDQQFQryHX6/q8WZwW5xB/KwE54Y=; b=f5hUB/EIho2lwpQvRQp237nzB7ulF8s6dtu/wJMOyrzmHefB2PAVzJp8SVhrnPtK+J/6WERoUiOYLN0Jjea+fogRfc42LPzgPjAQzwwL1c7UJuUFbt2N/zoQKv6p7L1XgfvMlrjvG/q0CxmDC50skA8s9SrUo6i0PzNpKp8iLwNzib3xhZWR4JwZ7ZBH6aP3CRNxSI4QstlOF74K430LRKK7yhnCD5WTZrImsdmy2JDP9tx8xq9Mh8FZr1i9bLIjTEJpN8XF7fqHzFZCX8iLWKV/MrFXWu+gYTACD7OgDshggIhggCPNOQrEZa/197ufaVQxQhQ1OqMUuDSkU0utlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oxNwd/vRwe0rZl+qDQQFQryHX6/q8WZwW5xB/KwE54Y=; b=kQHKn4MrXZDAnJEOvi1iBvj3+maLcZ6HxHb6LbcQy/KrI52vYUWKXjOAECLbA/llX7UKiy0HcPApzX6TAQuym2FIRDmnBYawXIqyCr02Krc82ehlIso1SATV51zIqGUi0EztW1fgGhX5xiWmqs08v2YahaAnf60WEHvzM0i1hL2UkQidCjm4sqQyjPWByfZ27Xda3xJEDHHHxisalLnXC+3Yat359+h2ioY1aJpG9ObgO7WzcrAidcisKUiQKBUYmh4TYOADu61Pl94qp7t8dsJZcCW2uZ2G9WZrVMjaV3hiLanDrMUzSUz5e846W6DOctZdSX8T4UPEZnrl56aXQg== Received: from VI1EUR06FT046.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::51) by VI1EUR06HT053.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.21; Thu, 4 Jun 2020 14:31:03 +0000 Received: from VE1PR08MB5261.eurprd08.prod.outlook.com (2a01:111:e400:fc37::4c) by VI1EUR06FT046.mail.protection.outlook.com (2a01:111:e400:fc37::317) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Thu, 4 Jun 2020 14:31:03 +0000 Received: from VE1PR08MB5261.eurprd08.prod.outlook.com ([fe80::211f:62ce:5fbb:5289]) by VE1PR08MB5261.eurprd08.prod.outlook.com ([fe80::211f:62ce:5fbb:5289%5]) with mapi id 15.20.3066.018; Thu, 4 Jun 2020 14:31:03 +0000 To: Theodore Brown , Benas IML , Peter Bowyer CC: internals Thread-Topic: [PHP-DEV] [RFC] Shorter attribute syntax Thread-Index: AQHWOgIv0rCwDWp4oECJgOMrWx9MxKjIGQcAgAAH34CAABX3jIAAN+9MgAAJen4= Date: Thu, 4 Jun 2020 14:31:03 +0000 Message-ID: References: ,,, In-Reply-To: Accept-Language: es-ES, en-US Content-Language: es-ES X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:BEAD8301FEBA9B35667DBC5D096C2346E8C6BE57ED60BEA7E59E4C5CE5E390E5;UpperCasedChecksum:94F50D5EC8225D06D8C9E23E4D8016A4F755F53E110C0253B0C1E07B5F799D53;SizeAsReceived:7390;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ekvBZ/PjbU7TgcVTn6PpdeMKOewMRTLy] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 31db7c10-8f2b-4a6a-706e-08d80893e931 x-ms-exchange-slblob-mailprops: mBRmoEB1kyIpodJhuJ0MbQDZCOxmlkuOBS2BYF5Ffegv3EwTNWdEdETl0zMrrtxBtbq9xuL8mS4jUSd9IZZgOgn43OjkCxu0L7OnrNtbR9N1bAJZLmVxDHQ2KbZ+b11UvopryqgVts9uF5YZYk/hi51JPnQlXiQdH7yoR4vojkmkZbYPte87t/bcS0ojzcCoeYYHykZVBKalrT9PhKB5HJlf9sQixFFfdTsmjgDXrid+IgPXNNvk/M08wvR1v4fMZTn8Uu154t5rB8iz03guzswxC/SxX9Ubt1iCHbD0N364KvFgey6JuEAywxr66ogVIe94Qv4LFNcPF7fJOoc1zIJaTsl8yLb52o0xcYoqVONo8AV0ohEtZweqxScDPDAfM6G7N+C0Ty3K5OBxn6OZQbZUAsHiCYol9HFkoPQJNc518gchNNTXWI6SnIcnsUTTJ2V1VdPcerbUlpy8XxUVKEj1u95JFp7lDYvVhfdfXzrYTuEjjycPPIw68dSNQ2p+/ETnB6pbdrFCoTRgSsToVEmF74K7zEcob9/apuTlMso97yAgSuoMSxKS05zkSnHBlyHB6vJ2EGMb974xvbSzYl7d+LHYLT8fl7m3Gy8dG1bNFGl7O+lKXRl8vKQVMOeO0GMC34hBRX5v0j69VkTQCMAQnzj8SoolUYQawpCCuyqhwNDZ6nUUo2vEZO+7LI2l5aglbMK9wa1WTD8Bbmh6GXRIaDz/EG8g9xGSKrvbsjvixw7xUN+JdJJI5F4cL7GSLbYPS8B/Xtk= x-ms-traffictypediagnostic: VI1EUR06HT053: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bqByCkMc9Ubcmf6LHqNHk07O19L7rO0EDSI4+AWzc2R5ORk+8WiSQaW7wnan09pD54oueWGl4X/TBpVrYjfGQFmY88aAJQn3Z1tSQci2YYBlTe9r0c78WBL0jwUG8BcDDZfmdsv5ZJjKUU+MNwzj6mLWdw6O5DAjmX4RBdzMScMvhnIH2FCo+PTL0unDyU8ztH/rWkJYWCZI1iz22hdM3g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB5261.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: LAnkT91GjNr+LVRo7EnhGVUzCEzY5XfQcwJln7FVYpJwX6FzuxbX8hjE+akFyXqtrH1eNlBX6WlzV9ivKaJi/1ccyenyZK4SQ0bew8/Urv8kDiefyR9HqJ7bgpCLEoTYiYmM2otsOsUstmluZYq7Gw== x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VE1PR08MB5261F46D4B79738F6D4AB29EB8890VE1PR08MB5261eurp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 31db7c10-8f2b-4a6a-706e-08d80893e931 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2020 14:31:03.7871 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR06HT053 Subject: RE: [PHP-DEV] [RFC] Shorter attribute syntax From: txigreman@hotmail.com (=?Windows-1252?Q?Iv=E1n_Arias?=) --_000_VE1PR08MB5261F46D4B79738F6D4AB29EB8890VE1PR08MB5261eurp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable >> As we are creating new syntax, why not simply use another single >> symbol? Here are some examples: >> >> ```php >> *Deprecated >> %Deprecated >> >Deprecated >> &Deprecated >> function foo() { } >> ``` >> >> I'm not 100% sure if all this symbols could by used in that context, >> but I think I prefer any of them rather than a double symbol. >> >> Would it be possible to add a multioption vote and let people choose? > > Hi Iv=E1n, > > No, I don't believe possible to use any of those symbols. * already > means multiplication, % is used for modulus, > is for boolean > comparison, and & is for references. > > The point of the RFC isn't to change styles to match a personal > preference about looks, but to solve several concrete shortcomings > with `<<>>` as laid out in the RFC. Hi Theodore, Yes, in other context they are operators; the same that << and >>, the bitw= ise shift operators, and the current syntax is already using them with a di= fferent meaning. The ones I put in my original message were just examples of tokens we could= use, maybe =93&=94 can=92t be used because it can conflict with references= , but there are some others I think can be used. Let=92s bringing them all = together: // From my original message: *Deprecated %Deprecated >Deprecated function foo() { } // New ones: :Deprecated =3DDeprecated function foo() { } We are looking at what other languages are doing, but currently PHP =93supp= orts=94 (not natively) *attributes in docblock comments, and it=92s a fairl= y used feature: /** * @Deprecated */ function foo() {} The closest usable token with one and two symbols would be * and *@ respect= ively. Anyhow @@ seems faster to type than *@. Anyway, what I was trying to expose is that, as we can not directly adopt s= yntax for another language, maybe it would be better to not introduce a 2 c= hars token with BC breaks, and maybe go with a even shorter token with no B= C breaks. Which token? I think there are a lot of them we can use, and for sure anyon= e has its preference; and that=92s why I was also suggesting to pick a few = of them, vote them in the RFC, and go with the winner. Regards, Iv=E1n Arias. --_000_VE1PR08MB5261F46D4B79738F6D4AB29EB8890VE1PR08MB5261eurp_--