Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100595 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14783 invoked from network); 14 Sep 2017 15:37:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2017 15:37:36 -0000 Authentication-Results: pb1.pair.com header.from=francois@tekwire.net; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=francois@tekwire.net; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain tekwire.net does not designate 212.27.42.4 as permitted sender) X-PHP-List-Original-Sender: francois@tekwire.net X-Host-Fingerprint: 212.27.42.4 smtp4-g21.free.fr Received: from [212.27.42.4] ([212.27.42.4:9104] helo=smtp4-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/41-19300-D32AAB95 for ; Thu, 14 Sep 2017 11:37:36 -0400 Received: from [172.16.0.23] (unknown [158.255.108.131]) (Authenticated sender: flaupretre@free.fr) by smtp4-g21.free.fr (Postfix) with ESMTPSA id EA01C19F5C9 for ; Thu, 14 Sep 2017 17:37:29 +0200 (CEST) To: 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> Message-ID: <8bbbf6e8-269b-fb6d-64e1-374a40e79638@tekwire.net> Date: Thu, 14 Sep 2017 17:37:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170914133846.GQ8096@phcomp.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: francois@tekwire.net (=?UTF-8?Q?Fran=c3=a7ois_Laupretre?=) 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. Regards François