Re: Re: PHP Annotations RFC + Patch
| From: | Pierre Joye | Date: | Sat, 11 Sep 2010 18:24:49 +0000 |
| Subject: | Re: Re: PHP Annotations RFC + Patch | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49601@lists.php.net to get a copy of this message | ||
On Sat, Sep 11, 2010 at 8:19 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> The separator never was a problem... but I definately don't want to
>> see another 6 months just to define what would the separator be.
>> If we need to drop [] in favor of array support, I vote for ! as
>> separator.
>
> The separator is not a problem (even though 1-char one produces much less
> clutter). The cryptic syntax is.
It seems that there is a misunderstanding about the goals of the
annotations. They are not meant to be read by human being
(javadoc/phpdoc/etc. are) but to be parsed automatically to be used
for services.
In that sense, to have a syntax closed to one of the best (or less
worst, if you are on the opposed side ;-) syntax out there (c#/.net)
may be a good thing to do, instead of re einventing the php wheel.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org