Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20268 invoked from network); 12 Sep 2017 17:05:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2017 17:05:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.169 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.169 mail-qk0-f169.google.com Received: from [209.85.220.169] ([209.85.220.169:36566] helo=mail-qk0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/76-10715-EE318B95 for ; Tue, 12 Sep 2017 13:05:51 -0400 Received: by mail-qk0-f169.google.com with SMTP id z143so26463638qkb.3 for ; Tue, 12 Sep 2017 10:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=6p8OphubKHm+hEI0pBglmcF/aU2qVOVdDNQNE/Icx3M=; b=WssbGTlf2oBAvBR0lwrMbgMjWydGhE/zNwp4hs1AA2ZFpZiThZCJY3MhSa/GJ3kcDZ ZS1IHzL92Q9MlY0GRwt7i7hsZwZTOW1qsXiRelvzEybVDj1OaTehfE7VNIAJfKbpVO99 3VsncIVIiDvl7Fvb0MbdofKVpp4LeptZTxJ99JJF3RAxZfuNb+PK+LSSAVYNT02pkPja 6Cbat2i9stwBGt177dTBd2W5jbborftVa7hcpjU9IWCOJCCgykseO+YXmFc5FtnxSSrK pUz1lpTaNU3BbDxxCFlPV36cRkTkII2r9YiH3AGSOo0CqZd8nXG1LoVMIii1s1Gr+TZ5 jwRA== 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:content-transfer-encoding; bh=6p8OphubKHm+hEI0pBglmcF/aU2qVOVdDNQNE/Icx3M=; b=QUDDRyLAxOH5k+u4OdoGV/LbJwMp0AlMCXIdvAgCXWrEus7IySImoRI4ocIep7S89A Oqekyhu55D6xK+iZ6ZLKTKG52uvDbCZKLzjiwzOOdv8dUlhQP1va3teOi+7VyRJY+BBn lTmFZ21hTgtIip2wCi2855TiNeaOgqbWtfDCf48rr5KSSlhC2syZsaSgkkeof5Q8tRKq 9nVxYTSzEo15Su9R2c7POoeYItlFxAZnymEzfvPc4mYfF0EPPTPsizykZ2KXI8v78JvC x6RVEb71EhwSh5AeVitenqsW1myn0BlqGt1gz+9RjMjYQmzW9rzoFKHb4pS0h9I2TgfA EKgg== X-Gm-Message-State: AHPjjUi56ztxrxx6lMhNnVj6uesfnsYvV/EG8hMH//4QwTmnPkh483Ki Y2MH3Fr1nL2ktybA/PKXHlpFRDeEroVu X-Google-Smtp-Source: AOwi7QCqWsJP3JOGYfr+UmL8bQWI8c+P+ykaM3tdlihaI5Yb0znyAjLaRUwm+/ga5lhVEpo/Qquks5ofUfq/v1WZBxs= X-Received: by 10.55.17.15 with SMTP id b15mr21650728qkh.136.1505235947675; Tue, 12 Sep 2017 10:05:47 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.132.3 with HTTP; Tue, 12 Sep 2017 10:05:47 -0700 (PDT) X-Originating-IP: [206.252.215.26] In-Reply-To: References: Date: Tue, 12 Sep 2017 17:05:47 +0000 X-Google-Sender-Auth: RpzvUVsZ0mi8CwrCh9zcFsULCII Message-ID: To: "Christoph M. Becker" Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: pollita@php.net (Sara Golemon) On Tue, Sep 12, 2017 at 5:02 AM, Christoph M. Becker wr= ote: > Even if these issues could be resolved, I still think allowing both > case-sensitive and case-insensitive constant identifiers does more harm > than good. > +0.1 to removing case-insensitive constants, though we'd need to define both "null" and "NULL" (similar for true and false) since there's little consensus on which version of these constants get used from project to project. Also: While deprecating for 7.3 is fine, I'd favor waiting for 8.0 for full removal. As to Fran=C3=A7ois' suggestion to make the whole language case-sensitive? Yeesh, that feels like a much more aggressive movement. In the case of constants they very nearly are case-sensitive only since, as you point out, common practice is to not pass true for that third parameter, and to prefer `const` over `define` anyway. Identifiers are another matter since they're insensitive by default. In the case of classnames I could almost get on board since autoloading standards have pushed users naturally in the direction of respecting case sensitive as a coding standard. I don't feel as though that's true of functions or of projects where autoloaders aren't used (not a small number). Overall: No. I'm -1 on making non-constant identifiers case-sensitive. At best, I'd perhaps get on board with a declare(case_sensitivity=3D1); style directive. -Sara