Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52043 invoked from network); 13 Jul 2014 15:01:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2014 15:01:18 -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.171 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.220.171 mail-vc0-f171.google.com Received: from [209.85.220.171] ([209.85.220.171:58539] helo=mail-vc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/C6-16748-D3F92C35 for ; Sun, 13 Jul 2014 11:01:18 -0400 Received: by mail-vc0-f171.google.com with SMTP id id10so5448769vcb.16 for ; Sun, 13 Jul 2014 08:01:15 -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:cc:content-type; bh=NolZ19CYL5TgWZk1T28tfToCrg+gbh/D6T+/ArRKgL4=; b=jKsA7JjQdyTAC1JKX+/prJOE3Pf8Unb3ynN8P91wgr8SO2pMQIr7OcOWJe4s35Ez3Q 5k9ZDg4jvMaBo+bk6FrRR5WT9mw06t30dv7a/O4t01Mm1+sWCJNxwtr+cAMBwkxzvHPz lXnjKzCgppLEWytMZ7AVjg88DM0wXeUT2Tcc0JQ/NivFdYyi2w+iNfnWj9rUFOYXvTaC rQj+zJ0U0M86CJSig3wATejVz+/tltXTNq3LmYE4i9OOpAnW5W+f7ee7+IjTurtT+THw EkAOGcBaAYBt3NLm/fFIf5QjvbwFeFQMhLeCFhByYvHprZ3cpijg9zWFY3WWSkpvEsjC z+ng== X-Gm-Message-State: ALoCoQkgqPKEmysr677jsoWiFDG7p68OfVmJgJw7g3f1izfcZk2qsYvdMTjDtUDYFXe0eyBHscW1+TM05r6UGTy1Lff8YiUfsNJXF7L+ssO1w1zEGYYwKhGlJuLTIAUU9Kbl3fzwGrOT X-Received: by 10.220.195.67 with SMTP id eb3mr389398vcb.30.1405263675148; Sun, 13 Jul 2014 08:01:15 -0700 (PDT) References: <08503591-EFC8-48E6-984E-FFC292C5EA5F@ajf.me> <027E65EF-C4FC-474C-92BB-D99EFADDEEED@ajf.me> <53C29EE4.3090808@gmail.com> In-Reply-To: <53C29EE4.3090808@gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJuUFVOlGiX172RfpkkW7aXwqSXwwOWY2SKAql1dl4CVdDzGgKRSJF6AWT2/k4CFsPBuJnroFWg Date: Sun, 13 Jul 2014 18:01:14 +0300 Message-ID: <63e5b1c38d6e0c5111987e78d9b59be3@mail.gmail.com> To: Jocelyn Fournier , Andrea Faulds Cc: PHP internals 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) > From my point of view, if the type annotations are doing implicit cast > (with or > without E_NOTICE/E_STRICT warning), they should behave exactly the same > than an explicit cast. If it behaves differently, I'll be really difficult > for a > developer to guess what will be the PHP behaviour with this new syntax. Coming to think of it, this is probably the cleanest and most productive approach. +1. Zeev