At 17:51 13/09/2010, Gustavo Lopes wrote:
On Mon, 13 Sep 2010 16:28:47 +0100, Zeev Suraski <z...@zend.com> wrote:
At 16:39 13/09/2010, Pierre Joye wrote:
You are not serioulsy suggesting to use phpdoc for runtime annotation
support? Are you?
I actually am (either that or get what you want done in some other
way). It's a rare enough use case that I think it's a very reasonable
compromise. The disadvantages of adding a whole new branch of syntax,
for this rare use case, far outweigh its advantages - IMHO.
Rare use case? Have you seen any recent Java framework? Or Java EE 6? Or
design by contract in C#? A declarative programming style can be very
handy.
Framework code (as in code that actually goes into a framework, not
code that uses a framework) represents a tiny percentage of the PHP
codebase at large. Most of it is application code.
I think great frameworks can be created in PHP w/o annotations (there
are numerous live examples attesting to that) - and the bang/buck of
introducing this whole new concept and the associated complexity to
everyone is not high.
Zeev
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php