Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102985 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38745 invoked from network); 30 Jul 2018 13:33:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2018 13:33:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=theodorejb@outlook.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theodorejb@outlook.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain outlook.com designates 40.92.11.42 as permitted sender) X-PHP-List-Original-Sender: theodorejb@outlook.com X-Host-Fingerprint: 40.92.11.42 mail-oln040092011042.outbound.protection.outlook.com Received: from [40.92.11.42] ([40.92.11.42:18885] helo=NAM04-SN1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/10-37576-A831F5B5 for ; Mon, 30 Jul 2018 09:33:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y3X3Z4LvmhAD1bUHfrVs0HahVFmzR5D6WbfGqqZNEhI=; b=LqBHd93EqGr5yRkgJ9EYDD/P3hQQcNnYjSVIf+693UWoemsk8aPnC8LaB4NI1hC7iVBRvBt4cGSurc9ifDhXbI2DfOYugrtJEHOGvRIenOgfTieG4P3DoCNbF7yAQTK6S9V70C5/dqItgKFo3AyBvwCtmflbympoaSQSr3DgDVn+9uE57lnPyu3l9HkRP6q9YZdklvqDcWy19wrsqe0BVvz4gzg+3yCtxJ1tOmK4l86QRxbMnfxNlgtHqI3nLCpDME1QLulUXLqfvoYOUovRogtRofZYiyYnxPVUia7RJ+P3r0Kp8E8PrTLtB8aLorivq5Cb5wHRxRkk0Hn1M8nCLg== Received: from CO1NAM04FT045.eop-NAM04.prod.protection.outlook.com (10.152.90.52) by CO1NAM04HT239.eop-NAM04.prod.protection.outlook.com (10.152.91.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1038.3; Mon, 30 Jul 2018 13:32:54 +0000 Received: from CY4PR18MB1048.namprd18.prod.outlook.com (10.152.90.54) by CO1NAM04FT045.mail.protection.outlook.com (10.152.91.195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.1038.3 via Frontend Transport; Mon, 30 Jul 2018 13:32:54 +0000 Received: from CY4PR18MB1048.namprd18.prod.outlook.com ([fe80::450c:ba8d:7e5:bcbe]) by CY4PR18MB1048.namprd18.prod.outlook.com ([fe80::450c:ba8d:7e5:bcbe%9]) with mapi id 15.20.0995.020; Mon, 30 Jul 2018 13:32:54 +0000 To: Abdul Haque Sheikh , "internals@lists.php.net" Thread-Topic: [PHP-DEV] Semicolon not required if statement on next line Thread-Index: AQHUJ9lZA1fl2ubxLkiJ62Z51wQ286SnwR6b Date: Mon, 30 Jul 2018 13:32:53 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:A38FC5340F7C189AFBBD78F3B2288340FB5B1970EAEEADC6F967E8210D6B47DF;UpperCasedChecksum:E8BF44FBE3EBC05456FFF900B5DDD296F8925A5122CDC4B3D9F9A16E693CBB62;SizeAsReceived:7140;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [qeTp9eR+XvTSu/ach7+uZAqHyus3olS8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CO1NAM04HT239;6:2XU9vI2dmFznwz7WVe28fU5AwtWG2tx+0NHEp7zbDwSS7FtcKDtkUezALzn1U9639TPhBl0jRc5EHL9QpQgHpe4KGqBDUwBw1NscNs0j0JiTQnh+ZB75yRlI2s0G+C7umoyMJuvH3XGPHwePUO9fBTYVv12WsnPCYVMGRkf5Eg1FXQVmO6QFFWXSHpJms6qvOwHVPQ7Zqo8Uys3Uee3V7u6RbCPJ/R47dcxv4pTq7XD4Zggq1iLbj5QIfM1x/nNaEKhotfIlzHv21y6DFlJvy5nXFrGsOCQfmpCmUb6+8sLXE/+f03nGA4roE3DpsHe7Ph5Yv2rDki28gePbDmndfs9n4AaS7/P358HxBY0LLkz1kK1ekBRcTB+jGr9pztareeAAPa1jWJe7Isy4MXsx2X8+iOyptfXWPcOmUq49ZOhwLZ3JuvFe4snsgtAxxvKyKqnRsKWtTd3RHkc9ZQd8iw==;5:aN1PEHJlaPDFm2IyZlju+eUMzP6+4+vQgeLfogvO0+qTOA5fHV3xXUz7m1ctYVj16zQHB2rZMd9jl+skeYyXRdTEmPSgPW1eozBhXNWGa6WVW8g8QDoCe3gtJuucSrch94qQId2uiD52wEeSr67NSEFnFKcR3dndSl8C4Xgl6sE=;7:CMcz319SqwXUk6sLLUDxyn0C2n2yVnH/+9VTpFMxUv0CBH5VdXZ0+/y/xuPIiIu6YgRojG/CccltlcmSLSfhlSoiUwVGRVjOANAD3LbdaNPYo2whvzSZozQtrtQoHnf1cHZMLwGkSZdub4Cjd7txWxp75cysPjrSXPYv+r5Zswjo4s5GOXtO3Jxm7R7+m9cdBTD4eK/krBo8GS6bDwJhuEOcuEkpr2cXV2/sZ23lGQ5NvEwEwr1aSsQN6C0bHKc5 x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1603101475)(1601125500)(1701031045);SRVR:CO1NAM04HT239; x-ms-traffictypediagnostic: CO1NAM04HT239: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(82015058);SRVR:CO1NAM04HT239;BCL:0;PCL:0;RULEID:;SRVR:CO1NAM04HT239; x-forefront-prvs: 0749DC2CE6 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(189003)(199004)(26005)(966005)(6346003)(7696005)(53546011)(102836004)(68736007)(476003)(86362001)(14454004)(76176011)(229853002)(20460500001)(6306002)(82202002)(55016002)(6436002)(5660300001)(39060400002)(6246003)(25786009)(56003)(97736004)(87572001)(104016004)(105586002)(2900100001)(106356001)(74316002)(426003)(8936002)(446003)(305945005)(8676002)(11346002)(81156014)(2501003)(99286004)(110136005)(486006)(5250100002)(256004)(33656002);DIR:OUT;SFP:1901;SCL:1;SRVR:CO1NAM04HT239;H:CY4PR18MB1048.namprd18.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: outlook.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=theodorejb@outlook.com; x-microsoft-antispam-message-info: MIhrEoj30ocILubvlubnJZ+/s8b3uVJIZ5IfoyrfPF2ZzRzXhZngbVkdT5PcoaFsRu7LOSubcOwjVHYbyjN+PsC2vZRg8oShZX4oyj1XAKZSp96xvaf1V+rfoEjLdSRFOQJtNYapi6onPOwSdKrT+Qb7r3S18ZWkuhU94qoxMO1PVptceIXXFFWYD2NGuXQyXmTifXENCgGX8ViEoYlrHQZ6A9MS7ONmpw8Kb24Lmns= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: dd759f05-a917-4aa0-a2f5-4cc35c50e0c8 X-MS-Exchange-CrossTenant-Network-Message-Id: 513696fc-2aab-43fc-2b5c-08d5f620f44b X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: dd759f05-a917-4aa0-a2f5-4cc35c50e0c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jul 2018 13:32:53.9965 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM04HT239 Subject: Re: [PHP-DEV] Semicolon not required if statement on next line From: theodorejb@outlook.com (Theodore Brown) On Monday, July 30, 2018 at 2:45 AM Abdul Haque Sheikh wrote:=0A= =0A= > why not to make semicolon not required if there is only 1 statement=0A= > like javascript. semicolon will be required if there are multiple=0A= > statements on the same line.=0A= =0A= Because this "feature" of JavaScript leads to confusing code and unintended= bugs=0A= (see examples at https://codeburst.io/why-i-prefer-to-use-semicolon-in-java= script-f00c303547).=0A= Many JS projects end up relying on a linter to require semicolons and avoid= these issues.=0A= =0A= The fact that PHP requires semicolons is one of the things I like about the= language.=0A= =0A= Best regards,=0A= Theodore Brown=