Search
55 results · page 1 of 3
-
Dmitry Stogov ·
… syntax "in words" to avoid misunderstanding annotations ::= { annotation }. annotation ::= '<' STRING '>' | '<' STRING '(' expr ')' '>'. where <expr> is regular PHP expression. Why not doc-block annotations? So it can be parse/understand that is already there (Doctrine annotations for instance). Thanks. Dmitry. hi …
-
guilhermeblanco@gmail.com ·
… of PHP rewriting stuff like xdebug does). At that stage, we'd already have resolved classnames, but not for those annotations in docblock, which is a simple block of text so far. We'd also have to introspect the AST …
-
Rasmus Schultz ·
… and you still have to look over the proposed changes and manually correct what it gets wrong. I really see annotations in doc-blocks as a symptom of the lack of static information in the language - the interpreter doesn't …
-
Derick Rethans ·
… 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 …
-
Pierrick Charron ·
There is already a similar RFC here :) Maybe it could be good to start from this one so that we don't have any duplicated RFC ? https://wiki.php.net/rfc/annotations-in-docblock Pierrick Hi internals! In one of …
-
guilhermeblanco@gmail.com ·
… On Tue, Nov 4, 2014 at 5:42 PM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: Hi, By dealing with annotations in docblocks will force the Annotations parser to much smarter than you imagine. Currently in Doctrine Annotations implementation, @param …
-
Stas Malyshev ·
… understood from the previous discussion, Hack doesn't enforce types at runtime consistently either, due to integration/BC considerations. So, in my opinion, switching from annotations in docblocks to non-binding annotations in the language doesn't really change the …
-
Vladislav Veselinov ·
Hey everybody, I've been following this list for a while (1-2 years) and this is the first message I'm sending. In my oppinion, annotations in docblocks are a bit(a lot) hacky and making it even worse …
-
Jordi Boggiano ·
Hi duke, I moved it to rejected in pro of a new proposal. I briefly drafted it here: https://wiki.php.net/rfc/annotations-in-docblock There's a lot of things to be officially defined, but basic idea …
-
Ferenc Kovacs ·
… all, Based on an extensive chat with Matthew, I think we reached some consensus. I'll write another RFC related to Annotations in docblocks, then we can chat until reach some standardization and availability. Regards, glad to hear that. Tyrael
-
Dennis Birkholz ·
… t be able to use annotations for PHP5 projects anyway. Except, if we put them into comments or doc-comments. /*[Attribute(Value)]/ Why not /*@ Attribute Value / or /@ Attribute(Value) */? No [] required and @ looks more familiar with docblock annotations in use.
-
Theodore Brown ·
… The concept of attributes being a class name with optional arguments has been proven over many years by its use in docblock annotations, and if there was some deficiency in what this syntax allows it seems like we would have …
-
Clint Priest ·
We should probably be referring to this type of syntax as attributes rather than annotations since annotations are currently defined in docblock comments and are recognized by certain software and utilities. Whereas annotations have no effect on compilation or at …
-
Jonathan Bond-Caron ·
… docblock parser for "annotations". That can easily live as PECL extension, Doctrine ORM mapping can done in XML, YAML, docblock annotations,... symphony validation in XML, YAML, docblock annotations, ...? Why is it such a persistent issue to have language level annotations …
-
Benas IML ·
… Benjamin, I'm sorry, but I don't understand your argument. It's true that annotations used to be enclosed in a docblock, but that is not an argument for saying that attributes NEEDS to be enclosed in a block …
-
Pedro Cordeiro ·
… I don't think this feature should ADD new functionality to those already present on DocBlocks. I just feel like docblocks are an ugly hack for the lack of native annotations. Pasting from a previous discussion in this same list …
-
Seifeddine Gmati ·
… care about generic type information today won't suddenly care because PHP grew the syntax. The audience that uses @template in docblocks is the audience that will use native generics. if the audience for the feature really is existing users …
-
Chris Wright ·
… I also don't think this feature is needed. In comments, simply use fully qualified names. FQN can be used in docblocks, that's true. But if you write some library which uses annotations and you want to offer a …
-
Jens Riisom Schultz ·
… what namespace it belongs to and this does not make sense without providing more context in client libraries (such as docblocks). Also the use statement information is NOT available in the engine, because its resolved way before in the compiling …
-
Chad Fulton ·
… or at least the complexity, is important. I like the idea of metadata, but what I found attractive about the docBlock parsing was that it only allowed key/value pairs of meta-data. -1 for annotations in which the engine …