Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111265 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 30195 invoked from network); 30 Jul 2020 15:03:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Jul 2020 15:03:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DF4CD180531 for ; Thu, 30 Jul 2020 06:59:28 -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,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2085.outbound.protection.outlook.com [40.92.41.85]) (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, 30 Jul 2020 06:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QM7pdSfw/QvK0xi7pzy0pLpmcywErIvVtvFMkk5q1ngwKwZG6rs89FWdawwHEmrAxtKRcOgoy95d0BeRwLnbnc9DVvAfwM8eRWswHcyzBQUyQoMPA2UtfKn18ftNrTgQ3TEAFNEfqlaHqJCsUvjYTsy8OmL5xsWcYYlGdsw1j50qJcAifs6QhqP3bMJu1J/niryhzNBJ8xNS01+9YId7+7Y6TUnbawMwhgOIshnWajsQYHCb5YB5Luexchk/dBaBdQZdltRw1Fg2X1AG2GGeOfVlmw77W9THXM+RTIkfgxjg2t50UkBYUzUERzEREpUTJbz8VO0NMkDrkvcuAIfWoQ== 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=+8DMUeTiFPEs3lTim46w9h9vFwVdo0ga4i6nOuOSRBE=; b=LZXJyPCTgKOgNT93ybxN24QV+lQa5cDcGhT1CuUUpJEtbpLuLmod5UPsEN3wrAQO8wXeX9Z3r3Nv6tpBOgOBAIdXbfRjzoldX75kyGY+Ox4s0agGv1rmg6Ni4A/TdHCkHGzLLMhCjILXD9BgFL0I8EYdH755oKedJVXvn2+fmeNt3aOJ4zFdU1ZncMVF9MqU1x/aa+cIWjCM6x53BB50BoZnfoyK5nBls3Jj3dvrdBQ3GWms/PSe4lqB6TgGLzLJmfcptarvuuovAcv068IXB0n4rl4Bhn+Hr2+EGauEnmyPaui+Ic3p4leEnfpZfKKm1L4XvIHFvIB1sGQkllSHyw== 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=+8DMUeTiFPEs3lTim46w9h9vFwVdo0ga4i6nOuOSRBE=; b=KKpTivaB3rtB0d2ZQ6vDyaJJ/Hbhc1rdMTaoKtgf/gEzczUyy+QeLOsyxN+e289aQsk8o5dLE9a4Sn0l2S19xvZdgcIBKDOY6DfvMiuOEEqhHd2AoJs8f3oWoFK69oXRWm1o8oyt88Ut5HfEGb6xWIsxsd1hkjmvHIbkfFh3lvPZxaobMKAGMbq/SHq+PTWWrnXYupM21mRGAE2lvihyKIyeLaHmTZupu/PHXajh5NnLxgKVEAtz+LJfU32x6LjUxu7m8opukibKzIRjnr2SzML/Q7RziXYRt8EW+D+3UEbCf6hfJA5iaSZCw+wW0VbS1EnIzYhMkTDkACYeVOqWHw== Received: from BN7NAM10FT062.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e8f::4f) by BN7NAM10HT139.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e8f::311) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.17; Thu, 30 Jul 2020 13:59:26 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e8f::4d) by BN7NAM10FT062.mail.protection.outlook.com (2a01:111:e400:7e8f::299) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.17 via Frontend Transport; Thu, 30 Jul 2020 13:59:26 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::cc10:a3e2:1dcf:adc1]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::cc10:a3e2:1dcf:adc1%6]) with mapi id 15.20.3239.020; Thu, 30 Jul 2020 13:59:26 +0000 To: Benjamin Eberlei , Joe Ferguson CC: PHP Developers Mailing List Thread-Topic: [PHP-DEV] [RFC] [Discussion] Shorter Attribute Syntax Change Thread-Index: AQHWZO4I0QL2FiMxn0qlAoSLzTT8dakgFjaAgAANZQE= Date: Thu, 30 Jul 2020 13:59:26 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:D050F97A639E4789283BF8BB2553A1883261FF81FFF412079C119A55D8D517E8;UpperCasedChecksum:57FED88C532CE1724BE4CE53B2D9DF3F1607512DE11154C854457B8DE4587B31;SizeAsReceived:7228;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [GwEY2xD+b/hrY1p48gVvJv7Pk5CjHRwUZzmHJ2PB6YH1+WGSJ4+kOa4DPV10kROF] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 8a465fda-8316-4bf9-cf57-08d83490c581 x-ms-traffictypediagnostic: BN7NAM10HT139: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AFVI71AKUkbQjRW7rpkAKqlmhJeigK1VgVTFmmbwxFgIQ3tTKxmtStzhhYuRMg06krmWf2DIIWOxkDoSjrPkTIbGVw0DNflgMJGnzwWpJN2JIZLdv7QijiNeZYJTwVEqwNW+qL13CaR6HGARZkZ28abaIogO/ApXwgbS2J70lm+rlZ443Te2DLNwWEF+zb9dINTVEhK2oXm3j4bHXgN7Hm23s0Nw//gE8lnZX6000G9YaXYmj9iOQ18Huf6Lsvnb x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR07MB6618.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: jtCEgTVrLs52HbdIEwLdMeUmDbkat0soiop4glHaYQ0Wr493avQC3Mpi45Jg0aEh4XiWadwb4LJi7kcM0UMknvVvetwAi4JkG7zLSG1Lm/W/nMv+dlVFztUfeDTQ3EKx1uoapZNsUHlY9zmOp/Z3nvJR+HO/oIhE+xy0hztyw6KCxPa6mWBDQskbXXnfRaPvIQNuX3GzmzPI69RSTr0cqw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: BN7NAM10FT062.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 8a465fda-8316-4bf9-cf57-08d83490c581 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jul 2020 13:59:26.5629 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7NAM10HT139 Subject: Re: [PHP-DEV] [RFC] [Discussion] Shorter Attribute Syntax Change From: tysonandre775@hotmail.com (tyson andre) Hi Benjamin,=0A= =0A= > The reason is not only Joe's desire to revote on #[], but also that there= =0A= > are now more syntax proposals such as @[] by Derick or @@ in comments by= =0A= > Tyson (though no patch exists for it yet). At this point a lot of syntaxe= s=0A= > are potentially viable (except single @, please don't suggest it).=0A= =0A= =0A= I'd agree, I mentioned earlier that I'd preferred ranked choice over a 2-ch= oice vote.=0A= =0A= Unrelatedly, https://wiki.php.net/rfc/shorter_attribute_syntax_change does = not mention the drawbacks I've mentioned about significantly changing lexin= g in unexpected ways (`#Attr('?>')` will start inline HTML in php 7).=0A= People reading the RFC might expect that `#[` would only lead to missing to= kens, not significantly different tokens.=0A= =0A= - https://externals.io/message/111218#111239=0A= =0A= P.S. I don't plan to create a patch for attributes in comments due=0A= to the long-term drawbacks for those writing tooling/editors for it,=A0=0A= difficulty to learn it, increased complexity of the implementation, etc.=0A= I'd strongly prefer `<<` and `@@` over comments-based syntax.=0A= =0A= That was more of "if language designers really, really wanted to write attr= ibutes syntax that would be usable immediately and work with existing tools= , ignoring various drawbacks elsewhere, then what could they implement?"=0A= I don't have objections to anyone attempting to implement it, but I'm not g= oing to push for it/work on it.=0A= =0A= Cheers,=0A= - Tyson=