Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81826 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48584 invoked from network); 4 Feb 2015 17:24:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2015 17:24:16 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:43222] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/71-40930-FB552D45 for ; Wed, 04 Feb 2015 12:24:15 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 690458C007D; Wed, 4 Feb 2015 12:24:12 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fqw-WsBKFU5o; Wed, 4 Feb 2015 12:24:12 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 9955E8C0057; Wed, 4 Feb 2015 12:24:11 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: <54D1B2DB.1080603@php.net> Date: Wed, 4 Feb 2015 17:24:09 +0000 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <0AF0F0D7-AAEC-4578-B21B-3BC108634A91@ajf.me> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <868C399B-F49B-482C-A7BE-9D2645506BA2@ajf.me> <54D1B2DB.1080603@php.net> To: Sebastian Bergmann , Dmitry Stogov X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: ajf@ajf.me (Andrea Faulds) Hi Dmitry and Sebastian, > On 4 Feb 2015, at 05:49, Sebastian Bergmann wrote: >=20 > Am 04.02.2015 um 06:44 schrieb Dmitry Stogov: >> What do you think about using only lowercase type names for scalar = type >> hints? In this case we won't have to introduce any limitations. >=20 > This would be inconsistent with the rest of PHP being case-insensitive > and only lead to confusion. This is how I feel. Array and Callable work, yet if Integer and String = didn=E2=80=99t it=E2=80=99d be inconsistent. Also, we=E2=80=99d *still* have a BC issue, because who says that people = with String classes didn=E2=80=99t use a lowercase type hint? I think the BC cost, while unfortunate, is unavoidable. Luckily, code = can be changed in such a way that it=E2=80=99ll keep working fine on PHP = 5 and only break on PHP 7, by using class_alias(). Thanks. -- Andrea Faulds http://ajf.me/