Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19138 invoked from network); 18 Feb 2015 13:31:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 13:31:33 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.53 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.213.53 mail-yh0-f53.google.com Received: from [209.85.213.53] ([209.85.213.53:46738] helo=mail-yh0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/B1-18888-43494E45 for ; Wed, 18 Feb 2015 08:31:33 -0500 Received: by yhzz6 with SMTP id z6so615666yhz.13 for ; Wed, 18 Feb 2015 05:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=awdL9iZ+RAJxi0ulh+hTg9j4sad0hLk0vREnwriwBu4=; b=0dbyWMGW8H8DhHEr8+ufzQDGdYaAD8OqbvvkCJ1Yj46Nd0KRe1auMqSXPUn2hXQ9lC gL0+InzQy7e/dSsZZPF84yRf4F8FRBq5zNITVv9x1Z/lou+7c0mwKfgO0NwZ7Gqe3uwG 3xAWTDs8R4xzmLfaCFkMNWrRoy39mtpPjexWijsWeBU9rzvQGQcOd0hS7b7Kf8jybqkH w+nem5F3PaY1SrMPoa4GuDJtChaK/7CoICOyWgkCp5w23jEtG1m9sKs55bPuaZ6GZqxh tuT5Crx4OaFmq8GigmAmmi0JX+K2X9XMiFCdvKDUbyusNEoNptfYU+ezoCmaUilR32Qr hueQ== MIME-Version: 1.0 X-Received: by 10.52.51.198 with SMTP id m6mr322712vdo.38.1424266289645; Wed, 18 Feb 2015 05:31:29 -0800 (PST) Received: by 10.52.179.168 with HTTP; Wed, 18 Feb 2015 05:31:29 -0800 (PST) In-Reply-To: <54E49135.60907@gmail.com> References: <54E49135.60907@gmail.com> Date: Wed, 18 Feb 2015 13:31:29 +0000 Message-ID: To: Rowan Collins Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Scalar Type Hints v0.4 From: leight@gmail.com (Leigh) On 18 February 2015 at 13:18, Rowan Collins wrote: >> This leaves us in a state where some functions will have defined types >> with their aggressive coersion rules and some will not, and we can't >> expect users to remember which set of functions have been updated or >> not. > > That's precisely the case for every existing user-defined function. > Switching to PHP 7 won't suddenly add type hints to every function in every > library and every existing bespoke code base, so there is no way to avoid > that thought process. Of course, and some people may opt to avoid type hints altogether in their own code to avoid this, but they can't avoid changes to internal functions. How do we plan to release these incremental changes? We try and minimise BC as much as possible so a patch release might not be possible. Do we restrict it to minor versions, i.e. the yearly release schedule? >> I think the rules need to apply to everything or nothing. > > The rules will apply to everything in the same way - if a function is > typehinted, it behaves like so; if it's not, it behaves the same way it did > in PHP 5. That's not really what I meant. So a user doesn't have to keep track of which internal functions are now typed and which are not, all functions should be typed at the same time, or none at all.