Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76681 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36208 invoked from network); 19 Aug 2014 04:23:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2014 04:23:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.176 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:43436] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/63-14556-131D2F35 for ; Tue, 19 Aug 2014 00:23:13 -0400 Received: by mail-ob0-f176.google.com with SMTP id wo20so4702647obc.7 for ; Mon, 18 Aug 2014 21:23:10 -0700 (PDT) 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=GR2eEv2RYol3I/SLRzl/D8JEZrfoZLmp0vx2m/9aejk=; b=MYRYV5DVu4Cm6I24saGnUWZnzSYVR2+EreiIstlG20k/XROrsNK5HaE86qUINKwOF9 SWQRShraRLc6RPU1igq4dqqrLpJIq1NQGXe1vd+dwuuHbbgVxkvnNtPKwPebUoDf3HDA 7uvx/LWv8yfbhVY3cDKq5eHsIpUDB/WP0Pd38b2M7g28DAv7D49KlVT4DUoae0wxv0kq 3UbOnCHeWxJ25giMP4PbhfyNkIMBS2KqvECrsikzWIhiTY0wM6eGxyd3wmXXkdBRdg26 h5Rbp87BAeQy2ZgeVbEVo+ezcFAki8ncJda/fPjn/xRiWOjhQ9zskEOF+QM27y0kJkM8 7KYA== MIME-Version: 1.0 X-Received: by 10.60.42.226 with SMTP id r2mr11434602oel.69.1408422190157; Mon, 18 Aug 2014 21:23:10 -0700 (PDT) Received: by 10.76.157.231 with HTTP; Mon, 18 Aug 2014 21:23:10 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 Aug 2014 22:23:10 -0600 Message-ID: To: Dmitry Stogov Cc: Andrea Faulds , Joe Watkins , ircmaxell@php.net, Nikita Popov , Xinchen Hui , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: Optional Type Hinting From: morrison.levi@gmail.com (Levi Morrison) On Mon, Aug 18, 2014 at 1:43 PM, Dmitry Stogov wrote: > Hi Levi, > > The implementation is really not a problem. It must be quite simple and I > may take care about it. > The problem that we can't come to agreement on scalar type hinting for years > :( > > Thanks. Dmitry. > > > On Mon, Aug 18, 2014 at 9:57 PM, Levi Morrison > wrote: >> >> On Mon, Aug 18, 2014 at 8:21 AM, Dmitry Stogov wrote: >> > I see your point. For me they just don't have a lot of sense without >> > each >> > other. >> >> I am the author of two of those RFCs. I've worked with several members >> of the HHVM team so that any inconsistencies are planned and recorded >> (or will be; I know of one inconsistency in return types that is not >> currently recorded). >> >> I also am definitely not in favor of merging them, for the reasons >> Andrea outlined. >> >> Also, Dmitry, if you have interest in working on the implementations >> for these RFCs I'm sure Joe would appreciate the help (I know I >> would). Joe was able to get it mostly completed in a really short period of time, but there is some issue going on with opcache. I have forgotten the details now, but I think it had to deal with the fact that the types need to have delayed binding. Joe or Anthony, can you maybe give more information here? Additionally, the implementation was built off of master because it was created before PHPNG; I think I probably want to target PHP 7 instead of 5.7 (again, PHP 7 was only being dreamed of then) so it would need rebased at least. Here's the work by Joe and Anthony: https://github.com/krakjoe/php-src/compare/returntypehinting