Exactly. Annotations just don't belong there. Short syntax for arrays got shut a few times but it finally made it to core. I hope native support will be revisited at some point.
On Tuesday, January 8, 2013, Pierre Joye wrote: > hi Stas, > > On Tue, Jan 8, 2013 at 7:28 PM, Stas Malyshev > <smalys...@sugarcrm.com<javascript:;>> > wrote: > > Hi! > > > >> I agree, there is a need in this functionality, but all those userland > >> implementations were at the first place made because this > >> functionality was not part of the language. I think docblocks is not > >> the solution, doc blocks are just comments, and I would expect any > >> code to work the same way if I remove my comments. > > > > So you never used PHPUnit and never will in the future, right? Maybe so, > > but thousands of other people do, and have no problem with directives in > > the comments. I think it is time to lay this red herring to rest - > > nobody who had any encounter with any of the most popular PHP tools > > really expects it. > > > Everyone I talked to who implemented annotations in docblocks did it > as hack because there is no native support. This is not something that > belongs to docblocks. It would be nice if you could take a look at the > c# doc, there are really good concepts there. > > Cheers, > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >