Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8297 invoked from network); 12 Sep 2017 14:55:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2017 14:55:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wm0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:45753] helo=mail-wm0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/64-10715-A75F7B95 for ; Tue, 12 Sep 2017 10:55:54 -0400 Received: by mail-wm0-f42.google.com with SMTP id f199so59358287wme.0 for ; Tue, 12 Sep 2017 07:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FB62D3V4vODjlecGnEP95SLqnG7CvdjCRrIq0ppWkvM=; b=TaLxZEChsLzyXhGKZMBPQX+vdxg6LWMXiBz9OCNibbgKWVdGSGl5VA+FzyvZ/lwPrh L0esCVLh0QMtMSq2BbeaD4IzgsHyQ5/xygx+zoQGkoXz4qQtzbaI031qKOKMAKwPu0Z/ AYPybVnbeNsxneFcydKj4tG+hh+mcyGzbeOCN7VXLaZyDo3H1j9VV5mqJBpUzdxMV7GW 87fUHeYqxnxGWV+E+5IHF1ml6BIfIg5Z14VSS9Le3JcT4CmCtCtHEjlLsCloOfEKI1Fk bH8VfRYycERcnJfJpIsqE+Q2uHtg8xNwLFvIjEDGTH2wQIzG+EhaGFHI4TVM3aOjRsdi 1X5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FB62D3V4vODjlecGnEP95SLqnG7CvdjCRrIq0ppWkvM=; b=Jsixyp+PJzVvQ8xBAaWlMDCOYfBbu4SbVvcXLdTjkc0vBOTVFeyt1kJM4QDOBXCYF4 XWuAvh84bynZ3BjLICjs1oXLo9eO5Zh/TdVwy8xYKRL3E+JumGjDFQIHq+uQv62N/dOd rPw2xxSC4fBqaT6AiF0XAFzykvj0WaiDHqUaPM7Y0Mf4lFi1TUUM28u8E7Q9RNNXeOu6 ldYIoIFRPuks57UyVOGSxky/K1RZajDjIe5q0NwrUzWNHT6ANr+DniinZzL7GDzZJb7/ dHO31FH2jMdPbASxnuB4oJ92MtHSFAU9RtlinlIxH7sw5pzGJ3we8zDZttq/wfYtdIyX cJcg== X-Gm-Message-State: AHPjjUhqVv7AXdYMjwSazdBaJXenHpVJKAW3gkbEnoA5Hx6EVTU2J+Zj jtPjqfPCwhmRva85afaBAhvMffrUISaUMEACKR0HNg== X-Google-Smtp-Source: AOwi7QCabzhnk/visP86CEKUT2PxGTkzv3gVg3dZ4JsacF9hgeq4/5TjvUNMT4vTDFqcmwj6FpGIz6UUGVe8j1lLNl4= X-Received: by 10.28.140.73 with SMTP id o70mr81975wmd.154.1505228151460; Tue, 12 Sep 2017 07:55:51 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.28.193.130 with HTTP; Tue, 12 Sep 2017 07:55:50 -0700 (PDT) In-Reply-To: References: <6601584d-c76d-4ed7-b4d6-b95e1b401cae@tekwire.net> Date: Tue, 12 Sep 2017 08:55:50 -0600 X-Google-Sender-Auth: p83UqlFbbIhfsAZkspV5N5k2Yk0 Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: "Christoph M. Becker" , "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: levim@php.net (Levi Morrison) > By itself this change provides little value. If it was done in > connection with other features such as merging symbol tables then we > can actually gain some significant improvements: > > array_map(sum2, $input1, $input2); > > Currently that requires `sum2` to be a constant. To get the correct > behavior we currently need to do: > > array_map('fully\qualified\namespace\sum2', $input1, $input2); After rewriting my reply I noticed this sentence doesn't quite make sense: > This is not just convenience; it provides safety to refactoring and > general code analysis tools. Instead I meant that using the string is not just inconvenient; it also prevents fully-safe code refactoring and analysis. > Maintenance is a crucial aspect of large > code bases and being able to move away from stringly-typed things is a > significant improvement. It's also a step towards general autoloading > instead of just class/trait/interface autoloading; however this would > require further changes. > > I believe these improvements would be worth it and do understand it is > a large backwards compatibility break. Given sufficient time and > tooling to prepare I think PHP would be markedly better in the > long-run for these two changes. However, if we change only the case > sensitivity of constants we gain little value for our BC break.