RE: [PHP-DEV] Annotations in PHP7
| From: | François Laupretre | Date: | Wed, 18 Feb 2015 12:01:45 +0000 |
| Subject: | RE: [PHP-DEV] Annotations in PHP7 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83051@lists.php.net to get a copy of this message | ||
> De : Benjamin Eberlei [mailto:kontakt@beberlei.de]
>
> nested can be done in any way, its a statement so the following would work:
>
> <orm(new JoinTable(['joinColumns' => [new JoinColumn('id',
> 'other_id')]]))>
Dmitry is planning compile time evaluation, which is probably the only way to do it if we use PHP
expressions. Is class instantiation, or function call returning a new object instance (I guess)
compatible with compile time evaluation ?
More : would userland functions be available (if already defined, of course) ? if yes, what about
functions defined in the same file but below the annotation calling it ? Two-pass ?
Regards
François