Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15187 invoked from network); 13 Sep 2017 17:25:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2017 17:25:03 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.176 mail-qk0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:48275] helo=mail-qk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/24-19300-EE969B95 for ; Wed, 13 Sep 2017 13:25:03 -0400 Received: by mail-qk0-f176.google.com with SMTP id a128so2151262qkc.5 for ; Wed, 13 Sep 2017 10:25:02 -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=JHX7FKCJDpU1dA8dsIk9nZB9eZlLMOzl7HMSce2ZESs=; b=HFzGZ+fs+czXmbcdOBIPBdotvEEDolnjammg9Zn+pcWlFYDUEjHx/q+yRc0FgneyE1 1wLCwKtEiIU90Tc/fLQ2AywlD7roMAETTjqRqO+7iWgsLOMtsdTktZ/ZuutWSYnjEHeG kq+ZJ8T1GMJsnUmlcG9GEGaSyPenRaVO8bYPHF/3BENr+6THHZoQXTYwOVzkYQq7piso i2DSXkWtRE4GrIXWEXcSME5VVeCp6pOWEZ1pzoAr37kNhkubmXo1Dpi5JGZCVt0A3Jqf YimLVTga/deJsaWv09rN9IV+ZIpURD+QpN2M8Hvf92bi7402qkimIXbnOJHCRtX/chGz eRtQ== 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=JHX7FKCJDpU1dA8dsIk9nZB9eZlLMOzl7HMSce2ZESs=; b=oPgVMyxfQCmMrJ4SYXQnrfINg6b1PQ+gZYbEPInRb33kMxSwb8hy5EebXh3T54OAto JOmCz1ateEZG7d3m8t1PAvDMB7hSxQbxNIgw/EXxefF1D2jZoMFH+9To1LspXllMpB3B f0QXuBVYu+WcJ3csUkH/cXoekwPdRk+zaNuu3yHZjmNoKrvJL5iNWKEPuZFqtvI7QCUk r/kXNax8m/qqiF9Gh61lLEFyCOZqGS5jp/0qb2GRBxmxsme9pVVEW8U4T8MsMh3sifD5 FklP3i2uKgiILkozoKYvzxILzG3wBH+Mr1HTFvpyaZ5beaRuSKPkphi28J4X4LLP+koa NU5w== X-Gm-Message-State: AHPjjUjvSHh19/3eVLcf/GjeFAa+R1yVnDc0/5Uqm/k5d+hEKadzy5ud VrCw377QmQbHJ/pkr5jHIVE9Yt4PvH0AKNYpc2DCWw== X-Google-Smtp-Source: AOwi7QAkGSBuUqwjG/wSk3M1c5yy9RwzritGaP+Y0/r8byj1G/ej9MugMqqSEMy9HUqyiv+dKhD8JWXDY42+lDXbjas= X-Received: by 10.55.18.137 with SMTP id 9mr26538863qks.208.1505323500473; Wed, 13 Sep 2017 10:25:00 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.132.3 with HTTP; Wed, 13 Sep 2017 10:24:59 -0700 (PDT) X-Originating-IP: [206.252.215.26] In-Reply-To: <3D.0C.10715.383F8B95@pb1.pair.com> References: <3D.0C.10715.383F8B95@pb1.pair.com> Date: Wed, 13 Sep 2017 17:24:59 +0000 X-Google-Sender-Auth: Xcx2Q3mXVSG0sDmP_6yki5n8PsM Message-ID: To: Tony Marston Cc: PHP internals 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 Wed, Sep 13, 2017 at 8:59 AM, Tony Marston wro= te: > "Sara Golemon" wrote in message > news:CAESVnVpUkM_W9xF+0Qt=3D2M61dGy40gtOehFo=3DU_F3gd87rmxrQ@mail.gmail.c= om... >> +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-sensitiv= e? >> 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). > > > You seem to forget that autoloading is an option, not a requirement. > I don't forget any such thing. I noted it as a phenomenon which has *pushed* users in a particular direction, but by no means have all users gone that way, as you note about yourself. Indeed, I have a 10 year old framework still in use at a previous company which does many similar things for many similar reasons. I also stated that I could *almost* get on board. Almost is not 100%, it's arguably not even 50% since it implies not actually crossing some minimum required threshold. > - I don't like the way autoloaders work - all my class names are in snake > case (lowercase with underscore separators) and the autoloader converts '= _' > into '/' thus producing a file path which does not exist. > Nit; That's autoloader specific. PSR-0 defines that behavior, but PSR-4 does not, for example. > By convention I always use uppercase for constants which makes them > instantly recognisable in my code as all other names are either completel= y > lowercase or mixed case. Making constants case sensitive instead of > insensitive would not affect me. > Agreed, nor I suspect would it effect most other users regardless of which case they use since the trend is to not use case-insensitive constants in the first place. > People who think that case sensitive software is cool are deluding > themselves. When I started working on mainframe computers (UNIVAC and IBM= ) > in the early 1970s everything was case-insensitive. This was only changed= by > people who did not understand the ramifications of their choice. > Yeah, decades of C/C++/Java developers are so dumb, like... fer reals. Friggin' script kiddies, the lot of 'em. -Sara