Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100605 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47574 invoked from network); 14 Sep 2017 21:22:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2017 21:22:40 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.44 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 74.125.83.44 mail-pg0-f44.google.com Received: from [74.125.83.44] ([74.125.83.44:45170] helo=mail-pg0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/76-19300-F13FAB95 for ; Thu, 14 Sep 2017 17:22:39 -0400 Received: by mail-pg0-f44.google.com with SMTP id 188so362404pgb.2 for ; Thu, 14 Sep 2017 14:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=s9w9/4qlzB+g018PhOuiboIHvotXPj9JMR6q0l+TEWU=; b=NFk66Vkw/Vtr0LUA9dCAgmKrhJAlSCGXYR4rkOmT82C2yixnmnhHBlwQvxWzrHqhCA kBSWPWLPxJfIKk2EFLmwUiBML9Tqj77K5PMGx42uc2lvMGrP8Cvs+K0zCuTIr3k/Nieq p/teREXuJrvO6JOaqDy/E2nFD4myxX1WhHk8sQ+03InU/kQ9ZxqIxWS3qZ+Vc7Ikckd7 BJ7NlsMUY1slpc1F5rXPifT7WUscvIRcBpka0w0gknXezSTffnmfk8kSh1v+g1ND3/ZJ gOl432dQVajxLF5pMihPF1NfEAf1V1a/2EiCrFIVeIMy5nUEnoQ0b4leHgZxdCfIWj2h iQDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s9w9/4qlzB+g018PhOuiboIHvotXPj9JMR6q0l+TEWU=; b=b7P/umTE2DRpUI1rPREPdZhqrhxECYwU+B0oVm9UrAnvS2hiShshIChiX8gByc2UaF EV8xQvGVWSP+sG1bOijbDPXCjjr3+6ZLqzJbcPM1pk61zPNJH4JCBUTdEp9JmfbVEW9v YfoDEYQ29UsWROvkG9cxVUIZocPplQGhF56MlGpW+tRcRq1Lw5h2djBHTVgyc/E17RWF +/pcF+InmVRxNa58FCMcnmW6zEDs/0b7Qk7D7/sUNSbDgIQj6/stCzhTm1JDWbYoKLUL U6P7+5m5o5GRuvl6W1L58vH+iS7bKO5s8ls5NClaBycmmPLffn7B8bYGV32mOP239UA7 +ZqA== X-Gm-Message-State: AHPjjUjfB4HYpqrvNaSMss7yvP0lD9nz0xo68uNaCozljTpue6oHRVzC x2MJX/RQVe+dDFkB4OI= X-Google-Smtp-Source: ADKCNb5NQQN5L7V6u6djgCbSrEOvaKXuEM2v0PP2xXWIdJd8ltu/+yDGy2xhgiAH3S4eYN9AEj/Z4Q== X-Received: by 10.99.112.24 with SMTP id l24mr21570912pgc.302.1505424156111; Thu, 14 Sep 2017 14:22:36 -0700 (PDT) Received: from Stas-Pro-2016.corp.wikimedia.org (tan4.corp.wikimedia.org. [198.73.209.4]) by smtp.gmail.com with ESMTPSA id p70sm21883275pfk.130.2017.09.14.14.22.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Sep 2017 14:22:35 -0700 (PDT) To: Nikita Popov , "Christoph M. Becker" Cc: "internals@lists.php.net" References: Message-ID: <752eaf1d-5603-70f5-8e69-b8243547cad1@gmail.com> Date: Thu, 14 Sep 2017 14:22:34 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > +1 on doing this. I can understand having case-insensitive constants, but > having both case-sensitive and case-insensitive at the same time is weird > and rather useless. I imagine the only reason why this "feature" exists in > the first place is to support arbitrary casing for true/false/null, which > is better handled by special-casing these particular constants (something > we already do for various other reasons). This will simplify the language If we support all case-insensitive constants that are predefined (not sure if any exts do that but we have to support those too if they do) then I don't see a big problem in phasing-out user-defined ones. After a quick gihub scan, I see there's some usage of case-insensitive constants but most of it doesn't seem to be actually using that thing (i.e. usages are in the same case as definition). -- Stas Malyshev smalyshev@gmail.com