Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46586 invoked from network); 14 Dec 2014 18:44:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2014 18:44:45 -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 198.187.29.245 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.245 imap11-3.ox.privateemail.com Received: from [198.187.29.245] ([198.187.29.245:56906] helo=imap11-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/50-45071-C9ADD845 for ; Sun, 14 Dec 2014 13:44:45 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 1A3D58800DB; Sun, 14 Dec 2014 13:44:42 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uCwGSEgaM4ux; Sun, 14 Dec 2014 13:44:41 -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 9163D88000A; Sun, 14 Dec 2014 13:44:41 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Sun, 14 Dec 2014 18:44:39 +0000 Cc: internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <2F9B99EF-538C-4225-95A4-943F57DADF69@ajf.me> To: Kalle Sommer Nielsen X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [PATCH] Consistent type names in error messages From: ajf@ajf.me (Andrea Faulds) Hi Kalle, > On 14 Dec 2014, at 18:41, Kalle Sommer Nielsen wrote: >=20 > 2014-12-14 19:35 GMT+01:00 Andrea Faulds : >>=20 >> I want to change the type names to be consistent, because I think our = current inconsistency is confusing. Integers are sometimes ints or = integers, but other times longs. Floats are sometimes floats, but other = times doubles. If scalar type hints are ever added, then jettisoning the = old aliases means we don=E2=80=99t have to add extra reserved words. >>=20 >=20 > You forgot that they can also be 'real', but on a serious manner, I > don't see any reason not to make the error messages consistent and I > would say go ahead already. Aha, yes, I did forget that real is also an alias of float. I suppose = this proves my point that all these aliases are confusing: I can=E2=80=99t= even remember them all! Also, a sidenote: In case someone goes and checks the manual and tells = me that is_long() is already an alias of is_int() and not the other way = around, the manual lies. In fact, is_int() is currently an alias of = is_long() in master. Thanks. -- Andrea Faulds http://ajf.me/