Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111133 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55823 invoked from network); 22 Jul 2020 18:15:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Jul 2020 18:15:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B974F180540 for ; Wed, 22 Jul 2020 10:09:44 -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 NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2102.outbound.protection.outlook.com [40.92.18.102]) (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 ; Wed, 22 Jul 2020 10:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IoVeW+BD5kTvwpf0WxcLf33I2EPqW5Rlv5tusZsHJahsT6BmZrWzh9yWj4cPX0GUg2eO5SO4F4BDrtEZAp8BRg3rBn1lf+VHvoXM2tW//LSD1H4J5bhbnXo3xRBoTjouqNX7YglQYoPivz4n/zQ5aWvpYZ4yMytZUwEEpjoP+rtN4kaD0rydUSFSZTVzyFJBKkPxmM0hsfmEp7Xeen/VcKri4NrO0go0vQ+MEIbAZmMsZBImt1k43rO3ffdgffOUleQsMCnQKJrhsj6F/rKV/s8IQmilBztRsAYl93LqpUQMrrYgGjFAFQJ4hpjnZjSyweAJEvuKzg/ZtCO23J+CPw== 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=xiujkgSZBX1we2y8d8WDeu5kecvr3aZNRgHkZ3hXZTs=; b=XCHfaUC4M4g8Sbir/3ybcuPk6aWbmDx7kS7DYO5PTkE4hhi94EYbAHx7hc2BWjoT14eaSR1Lg07/fqOZU38TYyR9LpHKoJQc2qyQ9uvYuyvE0hrsEOFNubfBTjN9aWndfH+S3dCtZLf+/p+dr5NFMvpuDIycyPEtfw+tupxV0wdh1hJvNfqn2Y+NHtXSU/QGFhhPvrq2GedCZFi6OS6YC5p+nmHP+dKCIaw7Y8SOEPHbJNWScMLnIoi+BZML4mJpyd9o5y/JY2ZzWT128/JnMBg2twW61jSzeqYYdmIXGjt//vYp982oKeaU2rj7IoPoai6YDB9ihExwvjqnpnvM0g== 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=xiujkgSZBX1we2y8d8WDeu5kecvr3aZNRgHkZ3hXZTs=; b=FYk8wHdHXzTxmXSzuFHErzvLf9oLL/ae2GklwutxgEdAnQEurbjOCbg/5SLhQ+vX4AHaDtvY8GLIhnqEC45kGMMSbSHmVwc0BNSGn5AgtqaFV58KpijohhStI/jWLiH5X2OTglhUHqYL2HfcMZDBhbsuj2XK14bwGTWB4mU5qGJ4RZZPL0hxsimXnWCvH+dSNcyveN18ebbLFFhdHGObi/Bj6lvvr9iEG9f5J+TV01GtHXRVpoGTEXrOzot+YLii2ptRa5gq0I62TT9PCiF8wLBVkTfk/o8YlZ5e8AjGiwr4STPhrdjLWgd45sG/HKZVokGgFHgXOTCg8YNuxIyDAg== Received: from DM6NAM11FT012.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::47) by DM6NAM11HT065.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::405) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18; Wed, 22 Jul 2020 17:09:43 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc4d::4a) by DM6NAM11FT012.mail.protection.outlook.com (2a01:111:e400:fc4d::365) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.10 via Frontend Transport; Wed, 22 Jul 2020 17:09:43 +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.3216.023; Wed, 22 Jul 2020 17:09:43 +0000 To: Derick Rethans , PHP Developers Mailing List Thread-Topic: [PHP-DEV] The @@ is terrible, are we sure we're OK with it? Thread-Index: AQHWYB+xuk8gBb/CD0iZOS7S/V0L06kT0uLa Date: Wed, 22 Jul 2020 17:09:42 +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:CEB22516988CE1DC8A9472594A83D01BC7F715F757AD7B91008CD44251F529BD;UpperCasedChecksum:402D7024EDED1448968FDD29CAA9107EE76A6F5237B74EB199D48DD96C849B78;SizeAsReceived:6959;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ltMKpQw/FN1WG3p6gfejttIKhsTUqcds] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: bd9f3e67-d10b-4baa-3aa8-08d82e6206ee x-ms-traffictypediagnostic: DM6NAM11HT065: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZgjrEvGORW7W9ot+flEMzG6RXB1SzkjuQ7bzerL+K3KR7tEA2rcDT3Ot/z+ARK3obQ0athavvX61JnfuEC1BcfDhV71dNjHZz8wGwJaZuiufREu841cIObVPqPxaQg4txPkS6yakIoQvFK6tY41tSw3v/tCRY6Hzy4ZnNPtxcbqu8S4MqZRmu+DMxmXa5FtDOX4GSBdZ0OnPTMn7m2KpjQ== 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: YU3Uz6b3PZEiumy7bLpY93RlWMUTXRdeZ6o1P/ZNfm3R7uXKefox03WFVTzH9o6x9ZXAFapzgQS1xtKxNGMePdXqeDRf5zklTMncpLlpZSfTDXeYrhzurmcIvWk+LC2p0PK6CYAOO621uPw2m0Q+oA== 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: DM6NAM11FT012.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: bd9f3e67-d10b-4baa-3aa8-08d82e6206ee X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2020 17:09:43.0024 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT065 Subject: Re: [PHP-DEV] The @@ is terrible, are we sure we're OK with it? From: tysonandre775@hotmail.com (tyson andre) Hi Derick,=0A= =0A= > Please, let's do the sensible and use the Rusty #[...] syntax.=0A= =0A= I'd probably re-vote for `<>` given the fact that `@@` may intro= duce similar parsing ambiguities in the future=0A= that may interfere with future language changes. (but those issues are not = a certainty)=0A= =0A= I think that `#[` has its own issues, but am open to re-voting on it.=0A= For example, the following snippet would get parsed differently in PHP 7.4 = and PHP 8.0, given a hypothetical JIT annotation for Opcache.=0A= With <>, it would give people a clear indication that the file= required PHP 8.0,=0A= but a one-line annotation might be silently treated differently in many sub= tle ways in 7.4.=0A= It's probably possible to amend the parser make it an error to put the func= tion declaration on the same line or to have other `#` comments=0A= within a multi-line #[ annotation,=0A= but I really dislike the special casing it would add.=0A= =0A= ```=0A= $function =3D array_filter(=0A= =A0 =A0 $values,=0A= =A0 =A0 #[Opcache\Jit] function(int $x) { return $x % 2 > 0; }=0A= );=0A= ```=0A= =0A= Cheers,=0A= - Tyson=