Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100971 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71725 invoked from network); 27 Oct 2017 18:31:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2017 18:31:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=tpunt@hotmail.co.uk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tpunt@hotmail.co.uk; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.co.uk designates 40.92.64.88 as permitted sender) X-PHP-List-Original-Sender: tpunt@hotmail.co.uk X-Host-Fingerprint: 40.92.64.88 mail-oln040092064088.outbound.protection.outlook.com Received: from [40.92.64.88] ([40.92.64.88:45017] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/B0-28573-57B73F95 for ; Fri, 27 Oct 2017 14:31:18 -0400 Received: from VE1EUR01FT032.eop-EUR01.prod.protection.outlook.com (10.152.2.54) by VE1EUR01HT138.eop-EUR01.prod.protection.outlook.com (10.152.3.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.156.4; Fri, 27 Oct 2017 18:31:14 +0000 Received: from AM4PR0901MB1265.eurprd09.prod.outlook.com (10.152.2.58) by VE1EUR01FT032.mail.protection.outlook.com (10.152.2.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.156.4 via Frontend Transport; Fri, 27 Oct 2017 18:31:14 +0000 Received: from AM4PR0901MB1265.eurprd09.prod.outlook.com ([fe80::ed8a:88ab:471a:61c3]) by AM4PR0901MB1265.eurprd09.prod.outlook.com ([fe80::ed8a:88ab:471a:61c3%14]) with mapi id 15.20.0178.007; Fri, 27 Oct 2017 18:31:14 +0000 To: Christopher Jones , PHP Internals Thread-Topic: [PHP-DEV] [RFC] Flexible Heredoc and Nowdoc Syntaxes Thread-Index: AQHTRAW9Yd+8OMxyIE+nYJTWLiuSDaLyOqAAgACMG2eAAVc6gIAD+Q0K Date: Fri, 27 Oct 2017 18:31:14 +0000 Message-ID: References: <0ac37ce7-62f4-7b1c-5b3d-2d2f45190f07@oracle.com> ,<674b2ad9-c6c9-493d-8078-dbf49e49a734@oracle.com> In-Reply-To: <674b2ad9-c6c9-493d-8078-dbf49e49a734@oracle.com> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=hotmail.co.uk; x-incomingtopheadermarker: OriginalChecksum:78156AAEB17FF8B327D2A48982956D31618275BD57D7D72758E1E792A91DFEEA;UpperCasedChecksum:E9CD8D8A0992968BF3D3AD59930944770B78E58B17039D6DFD097FE5D2E2E977;SizeAsReceived:7340;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [DUVXS9T21ephG5Pp+qPP02tmwEcZ9r52] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VE1EUR01HT138;6:qMvY/jzucDGlbOUWPghPbfagG2b2YYzbTgP3kn+ca1UqR6A/K529NTAlzMbOxZtkA3/U+fPC64eU8cYI4G/fJFHkzsqzb4tAbcQEGoCcUofhVuf1M8Sgisd6EyLPajlvv+AR4nARNTVynwc+79Qd7MWPRLdECKl1jlfe2XVnyGYW6MrISAePR612dlXilROZF65Ry8p9tVTOHXW1C0rulCWdp8tcIe4dwY5nyILTlsykZ9zU21Ge1WYXjyFgH2JAhph47ggnTR3in6fuy2R9y8wL0/GRI+H8iM+7gk20Wgz7RMBqjF46JOL4UBe8jYTiPVtkriUzLVVo4iUtcFRRqQ==;5:6IECi8+FcI5GmeUpYarEnPjfFxNIOPE6r9XhZGDAB6p3xjQQc0z/HrZ155Z6sSvzvW/5iQGfJWekcjGqhUBYVW23s99f1BO3Po9+MJw/4nXUB0/U9vbUf8de0Csk0liqwgS3V9xdut51wFxw0FlFaQ==;24:TuJYJ9vD1mja8DZ1CRvCn3T8Rql+a+rTanCPv1ZcJE+U6MvecjdJmlWIg1WoIa9FadTXdCuKHfrNQhFVrbgEsN3Z7uoCUt3OHy23I7gFJaI=;7:l7eSVtUvjaXT83nrBLZAntxMiQKkdxGLsxgjn3LgtHGhk3y5khCdh388dZyb/QwP6AYuhSXBEgyl63u/AeK7lBP3M/hxGAOmcR/aybUCwRXe0RpbBfPtIgH2/QSc5awKheHZLenf+/aAhiIl85mBCIcPViFHCt2zfS5cDIGMzScGYDZS2hV7FjcmpLOzV1iNZII1kx8cMlSS9Y6dKkDKTUC9m1d734+q1Kaf3ULqIfg= x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: eabbdc6e-3831-40dc-62b9-08d51d68e7db x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125374)(1603101448)(1701031045);SRVR:VE1EUR01HT138; x-ms-traffictypediagnostic: VE1EUR01HT138: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:VE1EUR01HT138;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VE1EUR01HT138; x-forefront-prvs: 0473A03F3F x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:VE1EUR01HT138;H:AM4PR0901MB1265.eurprd09.prod.outlook.com;FPR:;SPF:None;LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_AM4PR0901MB1265D4AF75446BF3D774F3E5F95A0AM4PR0901MB1265_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eabbdc6e-3831-40dc-62b9-08d51d68e7db X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2017 18:31:14.5418 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT138 Subject: Re: [PHP-DEV] [RFC] Flexible Heredoc and Nowdoc Syntaxes From: tpunt@hotmail.co.uk (Thomas Punt) --_000_AM4PR0901MB1265D4AF75446BF3D774F3E5F95A0AM4PR0901MB1265_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, > If developers accidentally add/subtract leading space from the closing to= ken then the whole string changes; Yes, this is a feature of the chosen semantics. The indentation level of th= e body can be chosen based upon the current indentation level of the code (= for which, the closing marker should be lined up to), not the indentation l= evel from the start of the line (which may cause developers to indent the b= ody text less to prevent leading whitespace, leading us back to the current= situation of having indentation levels ruined by these syntaxes). > this can lead to subtle bugs and annoyances. I think this clause is a little too exaggerated. Once a developer understan= ds that the closing token guides the indentation level of the body text, th= en the cause of the change in whitespace should be pretty obvious (if it's = not already visually obvious from the fact that they must have broken the i= ndentation level of their own code). -Tom --_000_AM4PR0901MB1265D4AF75446BF3D774F3E5F95A0AM4PR0901MB1265_--