Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30140 invoked from network); 6 Nov 2014 11:43:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2014 11:43:51 -0000 Authentication-Results: pb1.pair.com header.from=drgomesp@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=drgomesp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: drgomesp@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:61839] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/A2-28384-6FE5B545 for ; Thu, 06 Nov 2014 06:43:51 -0500 Received: by mail-wg0-f54.google.com with SMTP id n12so960578wgh.27 for ; Thu, 06 Nov 2014 03:43:48 -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=tep8Rm4cI9W4pJyVdLP5KqwDgcqxlrYAzTDjno9dW9Y=; b=tHk92thOuGEeF8lmrzThkTZ8OOGu8Opnopbu/sHBanRHSwAbKgizOdR3GKI2a9lQ99 zlsSGGa2+ZDx7AR+19YtAZz7X8gaHtg8byWMiKJtFFNL5dAsKzewbWkGvVHTiAp7xMwp pq1yyQZaCAUqxpZTB9ZnrjF8qukSUfJKHp0bj+2dPhIRyHjYo2sQaMhFubYkzeVuG5p2 WXC52jlRFHD30Jvtbq/0o0C5cxS8VDD7rgWOUs855cfDKXJHvxfYJvAtFiw7HtxbBS1T nkBOM4N94TOZXPER/CdrLwFbxV+iEHkPMyKKR0kmg2NjZCbuRhVsP2kVZLBjOIGRfzla pNOg== X-Received: by 10.194.222.98 with SMTP id ql2mr4972743wjc.10.1415274228165; Thu, 06 Nov 2014 03:43:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.39.201 with HTTP; Thu, 6 Nov 2014 03:43:28 -0800 (PST) In-Reply-To: <6FB6D82E-CF77-462D-8420-A1E37915EA13@ajf.me> References: <545B3900.6070208@sugarcrm.com> <6FB6D82E-CF77-462D-8420-A1E37915EA13@ajf.me> Date: Thu, 6 Nov 2014 15:43:28 +0400 Message-ID: To: Andrea Faulds Cc: Stas Malyshev , PHP internals Content-Type: multipart/alternative; boundary=001a11c27ac2a131c105072f353d Subject: Re: [PHP-DEV] Allow arbitrary expressions when using instanceof operator From: drgomesp@gmail.com (Daniel Ribeiro) --001a11c27ac2a131c105072f353d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Nov 6, 2014 at 3:36 PM, Andrea Faulds wrote: > Perhaps, dare I say it, we should merge the constant and class namespaces > in PHP7? Those are perhaps the least likely to conflict. It=E2=80=99d mea= n we could > handle instanceof expressions, and we wouldn=E2=80=99t need to use ::clas= s. Hi Andrea! I'm not sure I understand what you mean by "don't need to use ::class". Currently, we can only use the class constant itself, like $foo instanceof stdClass or a string representation of that class' name. Concerning the parenthesis, I agree they shouldn't be treated differently, but as for now they are. Daniel Ribeiro http://danielribeiro.org --001a11c27ac2a131c105072f353d--