Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75588 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98760 invoked from network); 16 Jul 2014 12:26:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2014 12:26:25 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:51688] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/20-31820-07F66C35 for ; Wed, 16 Jul 2014 08:26:25 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so1222798wib.4 for ; Wed, 16 Jul 2014 05:26:22 -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=luAbNKvfXQWei3rl4zhHogTXu+OuMQXUr6ppWl8arqw=; b=m46JhHT/lz9Oby+UWZ1WWu7risWVB1E1Nwork3qBoZOK8B+ki4fo7XS1PVxCvQRXan AZ2iWhUV6sqi6na/UpRGWGMKwDeD40xGsmw79azXAoOvAj+6x4OIfkX2jK1jg+w1YrcB qxC2vt/c16STbMLns61VX7x0/k3f3Lc2kAMfMkMVTbfgOCyBDCb6+PS36oP/j305UV2x dTHueB+7n3G56pKEK0Wc67RCm3EA5+fDZqAkbq8q/OyIIF7oSmBmZn/uQZ+aOd3hXk9l 8kFhJDLqwG9/csOh3OdjKKMOpYxSPttOiuHK+eMJNgS3o1ktsB/rc6wSVeiA9zlq8U7F gqUw== X-Received: by 10.194.91.228 with SMTP id ch4mr35614461wjb.59.1405513581844; Wed, 16 Jul 2014 05:26:21 -0700 (PDT) Received: from [192.168.0.139] ([62.189.198.114]) by mx.google.com with ESMTPSA id l8sm39471130wje.15.2014.07.16.05.26.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jul 2014 05:26:21 -0700 (PDT) Message-ID: <53C66EED.1000402@gmail.com> Date: Wed, 16 Jul 2014 13:24:13 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Andrey Andreev CC: "internals@lists.php.net" References: <08503591-EFC8-48E6-984E-FFC292C5EA5F@ajf.me> <16D48604-0C0A-4613-91A4-21392E3A2636@ajf.me> <05CE2216-C5D9-4937-9F2E-AA1407284D9F@ajf.me> <53C460DF.5040304@sugarcrm.com> <53C53A96.2040303@gmail.com> <53C55342.1010207@sugarcrm.com> <53C563B3.6060905@gmail.com> <54536191-1B92-4933-973F-0C8289D13A4C@ajf.me> <53C63872.4030404@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: rowan.collins@gmail.com (Rowan Collins) Andrey Andreev wrote (on 16/07/2014): > I understand that this RFC is about type cast hints and that's fine > with me. It is and it isn't. It's about a hybrid approach which deliberately mixes casting and validation. Having the mixture alongside pure casts or pure validation is less attractive than having the two "pure" forms side by side, but the mixture provides something which can't easily be emulated by either of the "pure" forms. Therein lies the problem.