Re: Allow arbitrary expressions when using instanceof operator

From: Date: Thu, 06 Nov 2014 11:43:28 +0000
Subject: Re: Allow arbitrary expressions when using instanceof operator
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-78809@lists.php.net to get a copy of this message
On Thu, Nov 6, 2014 at 3:36 PM, Andrea Faulds <ajf@ajf.me> 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’d mean we could > handle instanceof expressions, and we wouldn’t need to use ::class. 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

« previous php.internals (#78809) next »