Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67961 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78309 invoked from network); 27 Jun 2013 15:34:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2013 15:34:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-lb0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:51397] helo=mail-lb0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/39-34034-E7B5CC15 for ; Thu, 27 Jun 2013 11:34:23 -0400 Received: by mail-lb0-f176.google.com with SMTP id z5so483360lbh.7 for ; Thu, 27 Jun 2013 08:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=32uL/ryy9jznT9dOBRGrxcTGkBgAC0NezHv+rjBm8WA=; b=tsWZKpM0CGRuC2WxfOztDUAawgp4quZCSNHl6OvqM0XpG+pZTJ19FqdOwQitBO77aA FwHJI2EyM9dAkS1mxZ4nXRc9uyIkm97TfY9TTfIeGvqunFt5PMQ4G8TyYGVyOn+N0XkP APfchP9qB4/NK6CU3KqadJfir4M2ss4SRd6xZTr6AHc7aSxXaTkZLTTuRjX71QHme3hb +utalyOeAxEzQsno38KysU7gmUJovkVZQkMvtn/CWpjIIGAJfeL4qWNiWuCWG9ZA2EUo mfIQZSRk0Sgjs4lHe4MJOFbclpGIPy1BiOJLyYLeZMK3BbYJgU8+UXHF/3UYdpQo8gU+ qLvg== X-Received: by 10.152.29.227 with SMTP id n3mr4438484lah.43.1372347259624; Thu, 27 Jun 2013 08:34:19 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.29.36 with HTTP; Thu, 27 Jun 2013 08:33:59 -0700 (PDT) In-Reply-To: References: <51C9FA9C.8050403@sugarcrm.com> <51CA1C93.6080500@sugarcrm.com> <51CA24C5.9090505@sugarcrm.com> <51CB167A.4020207@sugarcrm.com> Date: Thu, 27 Jun 2013 23:33:59 +0800 X-Google-Sender-Auth: rmvC76IOjfbvEPdBJrx70C6_tKE Message-ID: To: Anthony Ferrara Cc: Stas Malyshev , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC: Protocol Type Hinting From: laruence@php.net (Laruence) On Thu, Jun 27, 2013 at 11:25 PM, Anthony Ferrara wrote: > Laruence, > >> I missed one thing here, it should be: >> why we need such feature that only a few people need it, and will >> also make reset people confused, and most of other language doesn't >> have it, and using it will make things a little mess(and low >> performance vs pure interface)? > > > I've proven twice in this thread, and on the RFC itself that performance is > equal to or **faster** than the current interface hints. Why does this > subject keep coming up? Do you not believe my numbers? Run them yourself. > The branch is available. And if you'd like, I can prove to you logically why > performance is going to be better in cases where you don't implement > interfaces but use Structural hinting. oh oh, take it easy, so are you saying, that check every method's signature of a class is *faster* than just check interface? I don't need to run the test at all > > If we're going to ignore the discussion and keep bringing issues that were > put to bed back up again, there's no point continuing here. Because "OMGS, > ITS SLOW" is the antithesis of a useful discussion once it's been shown that > it's not... I didn't, did I? did I said *MOGS*? I really hope you could mind you temper here(if you was angry), thanks I was just saying, it is slow, but it's not my main reason to aginst it. > > As far as "only a few people need it", last I checked, the Drupal community > was not 'only a few people' (27k developers in the Drupal community alone), > and several (at least 5) of their core contributors have expressed this > feature solving some very significant problems they have been experiencing. So, 27k developers all think it's useful? > > But if you *really* think this feature is needed by only a few people, and > that I'm blowing it way out of proportion (or inventing a problem), I'll > retract this proposal. you don't need to retract this proposal just because I object it, I am just saying my opinion here. > > I would just highly recommend that you think about the assertion that you're > making that "you know the community's needs" (to an 80% degree at least). > That's a very significant thing to say, and I hope that you are willing to > take the responsibility for that as well... Personally, I can only speak for > the side of the community that I interact with regularly, which is by far > not the entire community... ok, I am sorry about the 80%, it's just a 80:20 metaphor. I appreciate your effort to bring this here, and argu for it. and I was just doing the same thing, to argu it, and put my voice out. thanks > > Anthony -- Laruence Xinchen Hui http://www.laruence.com/