Hacker News new | ask | show | jobs
by risratorn 5000 days ago
> the PHP community is now officially so desperate for better metaprogramming capabilities that it is attempting to do so using code comments

This says it all ... and to be honest, from an ease point of view I like using annotations but as with most parts of PHP it's the implementation that sucks (or the lack of implementation)

Over 2 years ago a RFC has been filed for native php annotations and I must say that I like the idea of annotations being part of the actual language and not relying on Inflection on comments (wtf?) to attach metadata to classes, propeties or methods. Just too bad nobody can get their act together and get it implemented in the core. https://wiki.php.net/rfc/annotations

1 comments

That somebody could be you!
Problem is not finding someone to implement it, problem is getting the core devs on one line concerning the syntax/implementations. There have been numerous suggestions but none were deemed good enough, and maybe for good enough reasons I might add.

http://marc.info/?l=php-internals&m=130496081925265&...