Re: [RFC] PHP Attributes

From: Date: Mon, 25 Apr 2016 20:20:24 +0000
Subject: Re: [RFC] PHP Attributes
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-92756@lists.php.net to get a copy of this message
Hi! > No, but this is valid: > > @atrr(); function foo() { ... } > > That's perhaps a little too close for comfort...? That's different syntax. If you put ; in the middle of statement, it can change - "$c = $a + $b;" is not the same as "$c = $a; + $b;" - but nobody thinks + can not be used because of that. As I said, << and >> are existing operators too, so if you are creative enough, I'm sure you can find cases like that too. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#92756) next »