| From | Sent On | Attachments |
|---|---|---|
| 92 earlier messages | ||
| Zeev Suraski | May 10, 2011 9:47 am | |
| Sebastian Bergmann | May 10, 2011 10:14 am | |
| Sebastian Bergmann | May 10, 2011 10:15 am | |
| Matthew Weier O'Phinney | May 10, 2011 10:19 am | |
| Drak | May 10, 2011 10:29 am | |
| Lester Caine | May 10, 2011 11:12 am | |
| Christopher Jones | May 10, 2011 11:16 am | |
| Mike Robinson | May 10, 2011 11:20 am | |
| Ferenc Kovacs | May 10, 2011 11:21 am | |
| Lester Caine | May 10, 2011 11:22 am | |
| Ferenc Kovacs | May 10, 2011 11:27 am | |
| Ferenc Kovacs | May 10, 2011 11:28 am | |
| Matthew Weier O'Phinney | May 10, 2011 12:27 pm | |
| dukeofgaming | May 10, 2011 12:28 pm | |
| guil...@gmail.com | May 10, 2011 12:31 pm | |
| guil...@gmail.com | May 10, 2011 12:35 pm | |
| Drak | May 10, 2011 12:36 pm | |
| Ferenc Kovacs | May 10, 2011 12:40 pm | |
| Ferenc Kovacs | May 10, 2011 12:41 pm | |
| dukeofgaming | May 10, 2011 12:44 pm | |
| Rasmus Lerdorf | May 10, 2011 12:44 pm | |
| Drak | May 10, 2011 12:49 pm | |
| Rasmus Lerdorf | May 10, 2011 12:51 pm | |
| Chad Fulton | May 10, 2011 1:02 pm | |
| Christopher Jones | May 10, 2011 1:28 pm | |
| Lester Caine | May 10, 2011 2:32 pm | |
| Lars Schultz | May 10, 2011 3:03 pm | |
| guil...@gmail.com | May 10, 2011 3:27 pm | |
| Johannes Schlüter | May 10, 2011 5:01 pm | |
| Johannes Schlüter | May 10, 2011 5:15 pm | |
| Lester Caine | May 10, 2011 10:41 pm | |
| Lars Schultz | May 10, 2011 11:34 pm | |
| dukeofgaming | May 10, 2011 11:49 pm | |
| Lars Schultz | May 11, 2011 12:02 am | |
| Lester Caine | May 11, 2011 12:20 am | |
| Rasmus Lerdorf | May 11, 2011 12:44 am | |
| Michael Wallner | May 11, 2011 12:51 am | |
| Lars Schultz | May 11, 2011 12:59 am | |
| Lester Caine | May 11, 2011 1:04 am | |
| dukeofgaming | May 11, 2011 1:11 am | |
| Lars Schultz | May 11, 2011 1:25 am | |
| dukeofgaming | May 11, 2011 1:39 am | |
| Johannes Schlüter | May 11, 2011 1:54 am | |
| dukeofgaming | May 11, 2011 2:04 am | |
| Lester Caine | May 11, 2011 2:21 am | |
| Rasmus Lerdorf | May 11, 2011 2:30 am | |
| Johannes Schlüter | May 11, 2011 2:44 am | |
| dukeofgaming | May 11, 2011 2:59 am | |
| Lester Caine | May 11, 2011 3:43 am | |
| Richard Quadling | May 11, 2011 4:31 am | |
| Christian Kaps | May 11, 2011 5:21 am | |
| Drak | May 11, 2011 5:29 am | |
| Mike van Riel | May 11, 2011 5:35 am | |
| Ferenc Kovacs | May 11, 2011 5:52 am | |
| Lester Caine | May 11, 2011 6:18 am | |
| Mike van Riel | May 11, 2011 6:27 am | |
| Ferenc Kovacs | May 11, 2011 6:31 am | |
| Lester Caine | May 11, 2011 6:59 am | |
| Matthew Weier O'Phinney | May 11, 2011 8:30 am | |
| Matthew Weier O'Phinney | May 11, 2011 8:32 am | |
| Philip Olson | May 11, 2011 8:42 am | |
| guil...@gmail.com | May 11, 2011 8:58 am | |
| guil...@gmail.com | May 11, 2011 9:06 am | |
| guil...@gmail.com | May 11, 2011 9:21 am | |
| Christopher Jones | May 11, 2011 9:54 am | |
| Rasmus Lerdorf | May 11, 2011 9:58 am | |
| Lester Caine | May 11, 2011 10:11 am | |
| Arvids Godjuks | May 11, 2011 10:18 am | |
| guil...@gmail.com | May 11, 2011 10:28 am | |
| Andi Gutmans | May 11, 2011 11:03 am | |
| Ilia Alshanetsky | May 11, 2011 11:14 am | |
| Johannes Schlüter | May 11, 2011 11:20 am | |
| Philip Olson | May 11, 2011 11:33 am | |
| Martin Scotta | May 11, 2011 11:34 am | |
| Stas Malyshev | May 11, 2011 11:43 am | |
| Stas Malyshev | May 11, 2011 11:50 am | |
| Johannes Schlüter | May 11, 2011 11:54 am | |
| dukeofgaming | May 11, 2011 12:17 pm | |
| Stas Malyshev | May 11, 2011 12:30 pm | |
| Stas Malyshev | May 11, 2011 12:32 pm | |
| Sebastian Bergmann | May 11, 2011 1:55 pm | |
| Sebastian Bergmann | May 11, 2011 1:59 pm | |
| Sebastian Bergmann | May 11, 2011 2:01 pm | |
| Sebastian Bergmann | May 11, 2011 2:05 pm | |
| Philip Olson | May 11, 2011 2:10 pm | |
| Mike van Riel | May 11, 2011 2:53 pm | |
| dukeofgaming | May 11, 2011 2:53 pm | |
| Rasmus Lerdorf | May 11, 2011 2:55 pm | |
| guil...@gmail.com | May 11, 2011 2:57 pm | |
| Marcelo Gornstein | May 11, 2011 3:05 pm | |
| dukeofgaming | May 11, 2011 3:06 pm | |
| guil...@gmail.com | May 11, 2011 3:14 pm | |
| Stefan Marr | May 11, 2011 3:20 pm | |
| Philip Olson | May 11, 2011 4:28 pm | |
| Stas Malyshev | May 11, 2011 5:02 pm | |
| Jordi Boggiano | May 11, 2011 5:55 pm | |
| Philip Olson | May 12, 2011 10:29 am | |
| Alexey Shein | May 13, 2011 7:13 am | .txt, .txt |
| Alexey Shein | May 16, 2011 6:51 am | .txt, .txt |
| Michael Morris | May 16, 2011 2:16 pm | |
| 1 later message | ||
| Subject: | Re: [PHP-DEV] annotations again | |
|---|---|---|
| From: | Richard Quadling (rqua...@gmail.com) | |
| Date: | May 11, 2011 4:31:05 am | |
| List: | net.php.lists.internals | |
On 11 May 2011 07:50, dukeofgaming <duke...@gmail.com> wrote:
It is really troubling to read that statement. Seems there are still some that don't really have a clue of what annotations are, even when the RFC clearly links to them. Annotations ARE NOT documentation; in the case of PHP, documentation is being used as annotations because there is no language implementation, which exists in other languages (Java, .NET) and they are widely used. Also, some use annotations as documentation (e.g. store the class version), but again, annotations ARE NOT documentation. Don't let the "@" notation shared with docblock fool you.
Guilherme, I think its easy to assume that people already have some sense of what annotations are, but perhaps the wiki entry could be more educational about it?. The first time I read about annotations it was from this link: http://download.oracle.com/javase/tutorial/java/javaOO/annotations.html; perhaps an intro like that could help to make the case for annotations crystal clear?.
I'm guessing experience and interpretation is everything here.
From reading the Oracle page, to me, it seems annotations ARE documentation. It just depends upon who or what is reading them.
The first line of the page ...
"They have no direct effect on the operation of the code they annotate".
In other words, annotations are just like comments. At least in terms of what I understand the "compiler" does and what the "runtime processing" does.
The use of the @ isn't a fooling (according to Oracle) ... "The use of the "@" symbol in both Javadoc comments and in annotations is not coincidental—they are related conceptually.".
What I can't see from the link is _WHY_ annotations can't just be docblocks? Annotations and comments don't affect the code. Annotations and comments would need to be parsed to read them.
I understand that caching of the annotation could be an issue. And this leads to a gap in my knowledge/understanding. Why does _this_ script need to know anything about its annotations? Especially as "They have no direct effect on the operation of the code they annotate". It would seem wasteful to process dead data for no purpose in _this_ script. It only seems useful for some sort of external process reading the annotation/comment (say a documentor or a tool to build code for runtime operation). In those cases, these are one offs (ish), so caching would not seem to serve any real benefit here.
Whilst I think the syntax of the annotation may be worth discussing, the annotation can surely only exist in a comment, at least with regard to PHP.
And I'm guessing that the primary use of annotations within PHP would be in runtime processing, so is this really about the parsing of docblocks.
I think using PHP code in a docblock (with the appropriate tag ... @annotation maybe) would cover the requirements. Possibly. Due to phpdocumentor not being updated to handle namespaces yet, annotations are also not going to work correctly there.
Richard.
-- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php






.txt, .txt