Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97199 invoked from network); 16 Jul 2014 12:20:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2014 12:20:07 -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.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:60808] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/B3-07119-6FD66C35 for ; Wed, 16 Jul 2014 08:20:06 -0400 Received: by mail-wi0-f181.google.com with SMTP id bs8so1177960wib.14 for ; Wed, 16 Jul 2014 05:19:58 -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:subject:references :in-reply-to:content-type; bh=zkEppRK0b1aKGVboaVIOLb5+zY1HYFl2O13521ucMPY=; b=T6SoK25GC7f0yUxkgr+zJLZCy6pxmyR512lE3FZwi+PJrsBIpMYT8Nf0ilLRu/hjpS frOjo5Vp7w8+t8ODjgTtJ6ei+X7c76caiXBAMsWUUP0oMqr8uNbqptLjPyZF/SMYCzYr Ky8AsfHuLVjS69L/Df36qRsKLl0RZOYxjr1NRb+VcyEodnRX+XZ/oSwPD9Wp/uLUcDf1 bCn0iQzcsk9JIMWxHVQVgpt+5tSZnPwD3KzxuujSHPTt6lQUN6nkvd/uyXkhJDIPDqhu iBWMW9TuqZRIrYRJ4OBUIg0aa7kcaLtcm4irLcgBKHQIeNZXqh62M7O3BDhgmcqsvCDu x0YQ== X-Received: by 10.194.63.196 with SMTP id i4mr36281718wjs.50.1405513198359; Wed, 16 Jul 2014 05:19:58 -0700 (PDT) Received: from [192.168.0.139] ([62.189.198.114]) by mx.google.com with ESMTPSA id ja9sm55925693wic.8.2014.07.16.05.19.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jul 2014 05:19:57 -0700 (PDT) Message-ID: <53C66D6E.9060200@gmail.com> Date: Wed, 16 Jul 2014 13:17:50 +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: 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> <00d12255efc53466245b21a83ff7d474@mail.gmail.com> <53C652FA.6010704@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080703040007060504090907" Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: rowan.collins@gmail.com (Rowan Collins) --------------080703040007060504090907 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Zeev Suraski wrote (on 16/07/2014): > Secondly, if you do enable E_CAST - you may have to slightly*modify* your > understanding of implicit casts, but you won't have to learn two different > sets of rules. New users will see just one consistent set. I think I've got a bit lost: I thought you were saying implement the concept of a "lossless cast", but only emit a warning, not an error. Wherever and however we use it, we would have to invent a set of rules for what "lossless cast" means, since we don't currently have one. I'm not sure what "two different sets of rules" you think other proposals would create that this one doesn't. --------------080703040007060504090907--