Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100600 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26754 invoked from network); 14 Sep 2017 16:25:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2017 16:25:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.15 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.15 mout.gmx.net Received: from [212.227.15.15] ([212.227.15.15:60336] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/C3-19300-C6DAAB95 for ; Thu, 14 Sep 2017 12:25:17 -0400 Received: from [192.168.2.106] ([79.243.117.113]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lmr1w-1dDhUS0uqa-00h7hS; Thu, 14 Sep 2017 18:25:12 +0200 To: =?UTF-8?Q?Fran=c3=a7ois_Laupretre?= , internals@lists.php.net References: <3D.0C.10715.383F8B95@pb1.pair.com> <20b8b6fa-ec81-eba9-d33b-b54b815e9e5d@lsces.co.uk> <88.FC.19300.2418AB95@pb1.pair.com> <20170914133846.GQ8096@phcomp.co.uk> <8bbbf6e8-269b-fb6d-64e1-374a40e79638@tekwire.net> Message-ID: Date: Thu, 14 Sep 2017 18:25:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <8bbbf6e8-269b-fb6d-64e1-374a40e79638@tekwire.net> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:1wbCj9YBq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Wgm/ wXQr28PcXqyhrtybF5QJsHJL3/MyIgUhb2bODtZiwyf5/yQojU= Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: cmbecker69@gmx.de ("Christoph M. Becker") On 14.09.2017 at 17:37, François Laupretre wrote: > Le 14/09/2017 à 15:38, Alain Williams a écrit : > >> I vote for making it case sensitive: simpler for the parser; the >> programmer >> rapidly learns that it should be 'TRUE' and not 'true' -- job done. > > No need to force people to switch their code to 'TRUE'. Just supporting > case-sensitive 'TRUE', 'true', and 'True' (the same for false and null) > should be enough. Not supporting 'tRUE' or 'TrUe' anymore will also be a > positive side effect for code readability. I'd rather not introduce a special case here. All PHP keywords are currently case-insensitive (CMIIW), so promoting true, false and null from reserved words to keywords would solve this issue: all constants are case-sensitive, all keywords are case-insensitive, the latter obviously taking precedence. And frankly, if somebody really prefers to write "TruE", why bother? This would still be far from having a chance to win a "most obfuscated code contest". -- Christoph M. Becker