Re: Annotation PHP 7
| From: | Marcio Almada | Date: | Wed, 12 Nov 2014 17:23:27 +0000 |
| Subject: | Re: Annotation PHP 7 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78884@lists.php.net to get a copy of this message | ||
> One problem with using *just* array syntax, without any new keyword or symbols,
> is that it is extremely close to being existing valid syntax. This may well cause problems in
> the parser,
> and would certainly be confusing to users.
Not sure how sacred is
$, but it could be a good candidate for the
annotation identifier since it denotes "something that carries a
value":
$['package.annotation' => ['name' => 'foo']];
class Foo {
}