Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75486 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28160 invoked from network); 14 Jul 2014 16:46:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2014 16:46:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.51 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.51 mail-wg0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:62092] helo=mail-wg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/A7-25444-46904C35 for ; Mon, 14 Jul 2014 12:46:29 -0400 Received: by mail-wg0-f51.google.com with SMTP id b13so2256773wgh.10 for ; Mon, 14 Jul 2014 09:46:25 -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=CEs5Ot1S81J9z+glH1ZRHW5tECvm1UUnildf+RqDGLk=; b=cz9SkRyh4T7EotHifjjWs6igR3INbrL3oHLzIFiKj823x9JhDRuwV6nqmwattZWaZX zK2JNSfaNy4wMxB/NsveuxnpMgUR4pHodnFZgZPTRslYynGnRl8CHT1EQhYB9ogDvs+H 9FKL4tOZdgwO27uIC51DRfDHb8AG1FN10eyF0hupvIL0JmzLlrgPRgCmmg4d5NXNniDe IsVF++a4xUvoJqGAikDgJRGdlxoTbBOQdKQrHM21ytryDmMPjqLKe0wFMZjVvVcVYxrO YzMxM7o3CpBWAGQuFsQI94tM4z1W6PQko0bHcYLfYKh8i0ARZEo0wfFmh1L4P7rDwueQ /8pQ== X-Received: by 10.180.206.15 with SMTP id lk15mr25368055wic.43.1405356385407; Mon, 14 Jul 2014 09:46:25 -0700 (PDT) Received: from [192.168.0.139] ([62.189.198.114]) by mx.google.com with ESMTPSA id x13sm32969535wib.23.2014.07.14.09.46.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jul 2014 09:46:24 -0700 (PDT) Message-ID: <53C408EC.7080104@gmail.com> Date: Mon, 14 Jul 2014 17:44:28 +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: Zeev Suraski , Andrea Faulds CC: internals@lists.php.net References: <08503591-EFC8-48E6-984E-FFC292C5EA5F@ajf.me> <53C3F70A.7010706@gmail.com> <3aa29e080d70c843713e19a952dfbad6@mail.gmail.com> <3b06c592b0b88bb95d3ae7ea7a93d86f@mail.gmail.com> <6AF150D1-1398-43CA-977A-3CF3D51719F4@ajf.me> <5b53012f7b5437d85cdf9972194aa34f@mail.gmail.com> In-Reply-To: <5b53012f7b5437d85cdf9972194aa34f@mail.gmail.com> 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) Zeev Suraski wrote (on 14/07/2014): > I do believe that the vast majority of people would want '32 ' and "42\n" > to silently convert to 32/42, and will generally not care much about > '32abc' converting to 32 either for the sake of consistency. And passing 'hello' to a function type hinted as int? Will people really expect that to become a 0, with a mild warning they may not even have enabled?