Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78854 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65481 invoked from network); 9 Nov 2014 06:51:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2014 06:51:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=drgomesp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=drgomesp@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: drgomesp@gmail.com X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:46329] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/50-59927-2DE0F545 for ; Sun, 09 Nov 2014 01:50:59 -0500 Received: by mail-wi0-f175.google.com with SMTP id ex7so7820339wid.14 for ; Sat, 08 Nov 2014 22:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=YMDuBzGVfTWIB+AxRJgZRw/PqrUDH1In7zOUOaIeEdU=; b=kX1ja7AZM+mZT4+OdWJIc73uAd4snap6ODuVaFsta157ezao7BIQK+4qA0Q7+0xhXQ MtJNcy8hGvodxL3xjU5AKkD9P5M2epl6PXy2k/mtIpu/bbriZTSq5XVuaybacHkFk6uj PwFV0/i1CilcBXb9plT1WZmeYAVNyhVllmm15fkfK58TQkMVhNrCag0LdfEaeaiOEAUq ysO4tU2b/1ryDqeZCDOASOAvpFYsfVBc91bTGSkwBXSBm3icnqkVpkD0cpc3RSjAIga1 9MmehGeAQnuLsQbASNfnBOxT2m0LqOavZ63n99wG1ycQ87L+eqON0iRNvKkF6buowDDp tUAQ== X-Received: by 10.194.92.148 with SMTP id cm20mr31132353wjb.88.1415515854754; Sat, 08 Nov 2014 22:50:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.39.201 with HTTP; Sat, 8 Nov 2014 22:50:34 -0800 (PST) In-Reply-To: <545C093E.3050901@sugarcrm.com> References: <545B3900.6070208@sugarcrm.com> <545C093E.3050901@sugarcrm.com> Date: Sun, 9 Nov 2014 10:50:34 +0400 Message-ID: To: Stas Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7bfd0166b25b440507677738 Subject: Re: [PHP-DEV] Allow arbitrary expressions when using instanceof operator From: drgomesp@gmail.com (Daniel Ribeiro) --047d7bfd0166b25b440507677738 Content-Type: text/plain; charset=UTF-8 On Fri, Nov 7, 2014 at 3:50 AM, Stas Malyshev wrote: > I find it very hard to accept this particular argument. Honestly, I find it hard it too. The reason I started this is that I tried to do something like $foo instanceof $bar->getClassName() and I got a syntax error. It looks very straightforward and it should be the expected behavior, except that it doesn't work. So this is the main reason I started thinking about this: it's an improvement that aims readability and easiness. Now, I'm sure you can agree with me that it's way better than having a variable holding the class name. --- Daniel Ribeiro http://danielribeiro.org --047d7bfd0166b25b440507677738--