Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19891 invoked from network); 26 Jan 2014 22:52:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2014 22:52:10 -0000 Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.182 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.216.182 mail-qc0-f182.google.com Received: from [209.85.216.182] ([209.85.216.182:57706] helo=mail-qc0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/78-12631-89195E25 for ; Sun, 26 Jan 2014 17:52:08 -0500 Received: by mail-qc0-f182.google.com with SMTP id c9so7102823qcz.13 for ; Sun, 26 Jan 2014 14:52:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ed0JfiLjJaeD5DMnBT5lMXT3UTBILms2Hmkd/6+dy+A=; b=JfLL68dR/rVn/1Y52LRpeeaoLVvRPmW0J4xVQu7Zf0qCtZD4yTUUKILVu6bYxera1F iiM+NSMQV7DlkvjFZreO/+f4grMwnWN8iDir4y11MXY+uIMvCKFUDR4nownOHpqh3dpM bkNDKf/frfiL9D4qGFTMeXqqmt/M4ER7op/N1KuEzmdNRmc4YTyh8c3OAygMI7L20i3n EiFEgbfk9uAnZP5CS0yL8SIbVOWhPb2DTyo89BzTNWc+41cBpbILiYvraEU+6SSOXhWO ogpOiwh6FwBz7yxZeYmOvI7fUuxLw3+n5zvJ2xuxgCH69B7bJ6CgDmh1w04+Ft4Vj6PF tvmA== MIME-Version: 1.0 X-Received: by 10.140.41.234 with SMTP id z97mr36085866qgz.89.1390776725117; Sun, 26 Jan 2014 14:52:05 -0800 (PST) Sender: are.you.winning@gmail.com Received: by 10.229.240.193 with HTTP; Sun, 26 Jan 2014 14:52:05 -0800 (PST) In-Reply-To: <52E55D0F.3030308@ajf.me> References: <52E55D0F.3030308@ajf.me> Date: Sun, 26 Jan 2014 22:52:05 +0000 X-Google-Sender-Auth: BzwVu8In8InNijOjH1lde2YYffc Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] PHP and case-sensitivity inconsistency in PHP 6 From: daverandom@php.net (Chris Wright) I'm all for casing consistency. I'm very much *against* all-out case sensitivity. I don't want it to be possible to define a function foo and a function Foo that do different things. So essentially, I would like to see case sensitivity at call time (called name must match declaration), but case insensitivity at declaration time (when checking whether a symbol has already been declared): // no change function foo() {} function Foo() {} // error, cannot redeclare function foo // new behaviour foo(); // works Foo(); // error, called name inconsistent with declared name Thanks, Chris On 26 January 2014 19:07, Andrea Faulds wrote: > Good evening all, > > With the recent discussions making it likely we'll start thinking about > things to add, and more importantly, break in PHP 6, I'd like to bring up > the topic of case-sensitivity in PHP again. > > Would it be possible for us to finally be consistent in PHP 6, with > everything being case-sensitive (or case-insensitive, as the case may be)? > It would be a quite major backwards-compatibility break, but it would also > be one that an automated tool could easily fix your code for. Perhaps > something like Python's 2to3. > > Thoughts? > -- > Andrea Faulds > http://ajf.me/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >