Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1605 invoked from network); 12 Feb 2015 00:14:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 00:14:55 -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.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:49215] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/16-02515-540FBD45 for ; Wed, 11 Feb 2015 19:13:57 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id C32C6B0008B; Wed, 11 Feb 2015 19:13:54 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yLkhWOO4nG1V; Wed, 11 Feb 2015 19:13:54 -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 7DDEEB00068; Wed, 11 Feb 2015 19:13:52 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: Date: Thu, 12 Feb 2015 00:13:50 +0000 Cc: Zeev Suraski , Rasmus Lerdorf , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <61E01A7C-C5C8-447F-A8FA-E12A18E847CA@ajf.me> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <54DAF884.7000508@lerdorf.com> <203e611c8e0b03568a868b8d931aec37@mail.gmail.com> To: "guilhermeblanco@gmail.com" X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: ajf@ajf.me (Andrea Faulds) Hey Guilherme, > On 11 Feb 2015, at 22:46, guilhermeblanco@gmail.com wrote: >=20 > @Andrea: I spent around 2-3 hours speaking with Anthony and the other = half talking to Jordi (Composer, Symfony). > I still think a few things are required to be fully usable. > 1- Exceptions RFC (outside of your scope, but making the code under = strict type impossible to recover in a library) Yeah, I agree that this is quite important. This could actually be fixed = without exceptions (make type hint error skip the function call?), but = they=E2=80=99re a nicer way to do it (possibly simpler within the = engine?). > 2- Lack of numeric scalar type > There're others, but these ones are keys to make them fully usable. A number (or numeric, or num, or some other name) type hint is something = I plan to propose in a future, follow-up RFC. Thanks. -- Andrea Faulds http://ajf.me/