Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75581 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81719 invoked from network); 16 Jul 2014 09:22:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2014 09:22:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.180 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:63143] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/51-07119-07446C35 for ; Wed, 16 Jul 2014 05:22:57 -0400 Received: by mail-vc0-f180.google.com with SMTP id ij19so1065482vcb.39 for ; Wed, 16 Jul 2014 02:22:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:content-type; bh=niuloRru6D1eHkgQakQOTdqFFeBX6KqRPWQbYZMY3hM=; b=MEyBUESO4guE+3l8tPGlijbHEQ5CYXlmPzjQ15RNQHGWYe8HfZZLSxFAYQhmuuULyg UxUAL1vMARQv09vfLcWIOdNmSZQpsRskvE1s5dPw2pE7cNkRihUpCgmpYCB/+A4yWHBN O3u7abA8cgk17IA+6R8HH+cbfH1MBvzcv4p+DdTEgW9AxM3KXAhN/ZFL/PmPzUBCF7Ub 5MleqvM2xQQfToOktvjXSSkpcjzamFE7RDWhyiuJFbUfHYja9dvlpvIpU7zudhgizgpD SQHD7AcTvaC1w285EF0vPCxMZu2xGeUi+PHwFr7Qj+3dvqvT2SwP/VNXEckwq7oTZEQs KBKw== X-Gm-Message-State: ALoCoQlB6z5F/ztpHjDd07ZJtr9n2arQOK7iD8Ofx8tke0ylLLZpj1pjTrJaA72aJhVhV/yQhkmeuWWDi+XYuXKlC39CpmDxSlhG1fiSlFmgFoWp3lozmiU2KgHmNTxt4iEyBd8gfLaU X-Received: by 10.220.114.140 with SMTP id e12mr5955978vcq.37.1405502573888; Wed, 16 Jul 2014 02:22:53 -0700 (PDT) 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> In-Reply-To: <53C55342.1010207@sugarcrm.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJuUFVOlGiX172RfpkkW7aXwqSXwwLGIEDMAn0sGnoDLh5SUQGHGGlvAc6JkJwCOz0MXJn0/AVA Date: Wed, 16 Jul 2014 12:22:54 +0300 Message-ID: <9fdacf5c2293fc66cd69474aa1d50a63@mail.gmail.com> To: Stas Malyshev , Rowan Collins , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Stas Malyshev [mailto:smalyshev@sugarcrm.com] > Sent: Tuesday, July 15, 2014 7:14 PM > To: Rowan Collins; internals@lists.php.net > Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) > > Hi! > > > The answer - which is definitely a matter of opinion - is that > > allowing any string reduces the usefulness of the type hint. > > IMO, having consistent rules is much more, orders of magnitude more > important than serving any particular use case. We will always have use > cases > in which any particular check would not be enough. We should not sacrifice > the simplicity of the language to try and capture every one of them. Agreed. Zeev