Re: [RFC] Reflection annotations reader

From: Date: Tue, 08 Jan 2013 18:58:16 +0000
Subject: Re: [RFC] Reflection annotations reader
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-64698@lists.php.net to get a copy of this message
I do use PHP Unit and also Doctrine which uses annotations. And I know that today because there is no native annotations, the implementation use docblocks so I can not remove them :) But still if I did not know anything about PHP and that someone was talking to me about comments, I would expect my code to work even without them. Pierrick On 8 January 2013 13:28, Stas Malyshev <smalyshev@sugarcrm.com> 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. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227

« previous php.internals (#64698) next »