Re: [RFC] !instanceof operator - reaction measuremen

From: Date: Mon, 13 Dec 2021 11:29:45 +0000
Subject: Re: [RFC] !instanceof operator - reaction measuremen
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-116638@lists.php.net to get a copy of this message
On Mon, Dec 13, 2021 at 12:19 PM Michał Marcin Brzuchalski < michal.brzuchalski@gmail.com> wrote: > > Why not "not" instead? The "!" in front of "i" in > "!implements" is almost > not visible which IMO could get easily ignored unintentionally. > Instead constructs like "$foo not implements stdClass" have higher > visibility and are currently a syntax error. > > Cheers, > Michał Marcin Brzuchalski > Definitely a good idea! I was considering suggesting that as well when writing the implements/extends down, but wasn't sure if that would be doable as it would introduce a new keyword as well if I understand the setup of php correctly.

« previous php.internals (#116638) next »