Re: [RFC] Simple Annotations
| From: | Fleshgrinder | Date: | Mon, 16 May 2016 10:38:22 +0000 |
| Subject: | Re: [RFC] Simple Annotations | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93354@lists.php.net to get a copy of this message | ||
On 5/13/2016 2:11 PM, Rasmus Schultz wrote:
> Dear Internals,
>
> I'm announcing a simplified RFC for annotations:
>
> https://wiki.php.net/rfc/simple-annotations
>
-1 again, I am sorry.
The problem is that an annotation by definition is just meta-data. Your
proposal however might result in fatal errors from meta-data:
$reflector = new ReflectionClass(User::class);
$reflector->getAnnotations();
// Fatal error: Uncaught Error: Class 'TableName' not found ...
This is an absolute No-Go for meta-data.
--
Richard "Fleshgrinder" Fussenegger
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc