Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84540 invoked from network); 11 Mar 2015 18:21:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2015 18:21:07 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 74.125.82.42 mail-wg0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:38220] helo=mail-wg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/2E-07702-39780055 for ; Wed, 11 Mar 2015 13:21:07 -0500 Received: by wghl18 with SMTP id l18so11169166wgh.5 for ; Wed, 11 Mar 2015 11:21:04 -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=hss/MN4SzAiyts9eZni4HIclpu9fHx0OhBjp0P8pp7I=; b=HzcyDXig24zqu1B1DYYe4azpqxRqnTOxeyP68ETLKKD8ENlCgeRgd04mmErn2s+Qwz hb8Z6qGiprE5Tb05djSVRg5+oI7IenfAfglv7oSBYtqs/pENKHnGwIRtPfXh+Aox8Suo 7nvUKEHl1q9e4fxsbPBKte8CC79ctOPXT+cU7qICMxSKIBEvnfRKYHlhohIXmvrmm83b ylvdG/p5WW2LemnDtSnpVfFyi5KKk310IBViTwvH2169rkNvMyE4p7MZrP7V1+874TXs jd11NwbT8bachJ3YjSfuB8FP4Dv5BF/Q5J85s1tW75iKtTxH3ED8LJZcAtS8vStCUfKK PnyA== X-Gm-Message-State: ALoCoQm1N9LCG8y3UoeXZA806w+Ni748XmB2M5AmiFVudiu6kzk1UV9fGg2vTUsFU1M2e4Gy4L/vb+Ht4JxzYJ2BOn5C8AE+PHFhYX8LehaxVPYp1HFxH2CQiB/OxgMo2eG9YNerzUBi76mAa8qJzzIBqAM/BRnyhQ== X-Received: by 10.180.106.197 with SMTP id gw5mr32577656wib.58.1426098064165; Wed, 11 Mar 2015 11:21:04 -0700 (PDT) References: <8cdd5272816cf2b22ea9793d80ba5074@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKPOnWVaAuYgcCmzEA2Wd2iOMMQuAFOokdaAmmldpAC+zfxn5tkPc5w Date: Wed, 11 Mar 2015 20:21:03 +0200 Message-ID: <57faf129256d6ddd0f4d2a9660fd238f@mail.gmail.com> To: Dan Ackroyd Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] [VOTE][RFC] Coercive Scalar Type Hints From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Dan Ackroyd [mailto:danack@basereality.com] > Sent: Wednesday, March 11, 2015 8:04 PM > To: Zeev Suraski > Cc: PHP internals > Subject: Re: [PHP-DEV] [VOTE][RFC] Coercive Scalar Type Hints > > On 11 March 2015 at 16:45, Zeev Suraski wrote: > > I think that going through a transition period ... that ultimately > > results in one, consistent language behavior > > This RFC is explicitly saying that there is stuff that will be need to be > changed > in the future. Why would anyone upgrade from PHP 5.6 to PHP > 70 when there are going to be more changes to the type system? Because of the huge performance gain? And the many features? And the ability to gradually prepare for future versions softly, like virtually all of our deprecated functionality lifecycle works? > This is clearly worse than the strict STH RFC; with that people can write > code > that will work on 5.x, 7 and 7.x by just not using scalar type hints. That's exactly the same here too. Code that works on 7 will work on 5 - 7 will be more restrictive than 5, but not vice versa, so anything that works on 7, works fine on 5. And you get the benefit of weeding out issues and make your code better for both versions by checking it on 7. Zeev