Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85960 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1742 invoked from network); 27 Apr 2015 04:45:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2015 04:45:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.170 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.170 mail-pd0-f170.google.com Received: from [209.85.192.170] ([209.85.192.170:36203] helo=mail-pd0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/A1-17556-7DEBD355 for ; Mon, 27 Apr 2015 00:45:11 -0400 Received: by pdea3 with SMTP id a3so115671236pde.3 for ; Sun, 26 Apr 2015 21:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=UCAe4moc0ATYu3JianGfKgn5zu46Fq/6fGEwJIesdeQ=; b=t09HCti7NkWchrvFBc/XgOKyFl8IOAMwZl5Fj5icwQqgz27tnX8XOSCNDaLFlgmz5J GPNNhRbxXq5CvHIyJruAkcTMsnb5K3+Ov2R2PawV6M+G7kcmOFKukE1S1MSrnwGY3V5t tEeLE9omXLLjyjqe9KbE7MxWb8okLyLNpo8tsD6i2ZP+zy42+yKjINXgIqN+ZAd2AQXk 2t3KZD7Js+Dr1qObFFPmKLChgges11KaHCB/S7Q25O2CpfBIhE9ZudhyGpXX2wjAlnW/ a/xmjnZeNzZoFs1DMuGIcjNkGuF25z6Y3bm4BhJtcwiwWoDXXhev1tLuK386IXcEp4aA SOrQ== X-Received: by 10.70.100.36 with SMTP id ev4mr18601633pdb.73.1430109908211; Sun, 26 Apr 2015 21:45:08 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id jp10sm2982391pbb.9.2015.04.26.21.45.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Apr 2015 21:45:07 -0700 (PDT) Message-ID: <553DBEC4.7000609@gmail.com> Date: Sun, 26 Apr 2015 21:44:52 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Nate Abele CC: internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Well, it looks to me like all the discussion is around preventing > class and namespace names like “string”, “float”, etc. Granted, PHP > class names are case-insensitive, but how hard would it be to reserve > these in a case-sensitive way? With current engine - I'd say it is hard. We can't really say "class names are case insentitive unless it's "string" or "float" or "boolean" in which case they are case sensitive". Imagine how code implementing such logic would look like, not to talk about the inconsistencies... > Lithium, CakePHP, and Drupal all have String classes. These aren’t Unfortunately, with scalar types we don't have much choice. I don't see how scalar types and classes named "string" can coexist. > I get that PHP 7 is the big opportunity to break backward > compatibility, but yeesh, really? It’s like we’re not even trying > anymore. There was a lot of discussion about this topic. Right now, unless there's a proposal to fix it that works, I don't see what can be done about it. -- Stas Malyshev smalyshev@gmail.com