Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81570 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96215 invoked from network); 2 Feb 2015 09:05:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 09:05:15 -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:46555] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/D5-02376-ACD3FC45 for ; Mon, 02 Feb 2015 04:05:14 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 6D2598C0081; Mon, 2 Feb 2015 04:05:11 -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 rotK34n6KKDi; Mon, 2 Feb 2015 04:05:11 -0500 (EST) Received: from [137.50.173.145] (oa-edu-173-145.wireless.abdn.ac.uk [137.50.173.145]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id A1CCF8C0080; Mon, 2 Feb 2015 04:05:10 -0500 (EST) References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <1E54E93F-8CE1-469F-BE1F-DD2F1DF76E39@ajf.me> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <063B69C3-B878-40F6-A202-6735CB37A5FB@ajf.me> Cc: Dmitry Stogov , PHP Internals List X-Mailer: iPhone Mail (12B466) Date: Mon, 2 Feb 2015 09:05:10 +0000 To: Andrey Andreev Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: ajf@ajf.me (Andrea Faulds) Hi Andrey, > On 2 Feb 2015, at 08:55, Andrey Andreev wrote: >=20 > Hi, >=20 >> On Mon, Feb 2, 2015 at 10:41 AM, Andrea Faulds wrote: >> Hi Dmitry, >>=20 >>> On 2 Feb 2015, at 07:02, Dmitry Stogov wrote: >>>=20 >>> As I already told, in my opinion, version 0.1 was the perfect solution t= hat >>> fit into PHP semantic very well. >>=20 >> I don't like the original. Weak types work to a degree, but they don't fu= lfill the use case of a lot of developers, and consequently the RFC wasn't t= oo popular outside internals. >=20 > I still think that caller-controlled "strict mode" doesn't fulfill > that use case either. How doesn't it? It doesn't force the model upon your users, sure, but someth= ing like that is never going to get past internals anyway. -- Andrea Faulds http://ajf.me/=