Search
55 results · page 2 of 3
-
drealecs@gmail.com ·
… for them to be out of sync for no benefit? Rather than duplicating attributes, wouldn't libraries simply stick with docblock annotations until they need to depend on other PHP 8 features anyway (e.g. union types), and then switch …
-
Nikita Popov ·
… think about it - much of the discussions revolve around API issues, and like someone pointed out, you could do metadata in other ways, without altering the language or parsing docblocks. I'm not making this point to argue against annotations,
-
Chad Fulton ·
… exact functionality you wanted within doc comments. However, there is support based on the annotations thread for "APIs to parse doc blocks". I don't know what is meant by others (Zeev, Stas, etc) when they say this. However, in …
-
Lars Schultz ·
… the doc blocks in a generic way that does not break half the applications out there. When extending doc-blocks there is probably new method required $refl->getParsedDocComment() which then returns an array of metadata for that particular refl in
-
guilhermeblanco@gmail.com ·
… http://wiki.php.net/rfc/annotations suggests to add new syntax to the language to provide meta data for use in reflection. This sort of meta data is usually provided in the form of docblocks, which this RFC does not …
-
Rasmus Schultz ·
… we don't want arrays with magical key/value pairs - for example, so we can have static analysis, inspections, auto-completion in IDEs, etc. Annotations need more consideration for design time - run time attributes, in my opinion, is not eno
-
Marcelo Gornstein ·
… for similar reasons. I'm the author of Ding (IoC/DI container) and I really dont like having to use doc blocks to support annotations. I think this is an increasing need generally speaking in the php world. If PHP …
-
Lester Caine ·
Lester, nobody wants to move phpdoc out of the doc comment. Its still documentation. It will stay,. We want to move the "annotations" out of the docblocks that are evaluated at runtime for configuration. Thats two different things. That …
-
Marco Pivetta ·
… it "further complexity without a real need" :) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ Having been using 'docblock' elements to document classes in PHP for many years, their use by PHPEclipse and PDE to provide type-hinting …
-
Fleshgrinder ·
To add to your list ... https://www.phpdoc.org/docs/latest/guides/docblocks.html The glossary entry is rather bare, but I would dispute THEIR statement - "but also influences the way the application behaves." In my book, these comment blocks …
-
Lester Caine ·
… that features include should be widely used and only important functions, classes that have regular and extensive usage would be in. I'd use the past tense there ... And I'll get beaten around the head again. PHP is a …
-
james.butler@edigitalresearch.com ·
… then allow developers to hack on top annotations (or another RFC and do it properly) and anything else they wanted without having DocBlock parsing explicitly tied to annotations (which the internals thread seems have cemented in everyone's mind). James
-
james.butler@edigitalresearch.com ·
… by design. Hence commenting out code so it is not parsed! How would one tell the parser not to read docblock annotations as there wouldn't be a mechanism to comment them out? Lots of people use comments to stop …
-
RFC Attributes v2
Benjamin Eberlei ·
… to do-block comments. They can be declared before or after a doc-block comment that documents a declaration. Could annotations be declared before AND after the doc-block? What would be the behavior in that case? Attributes are handled …
-
RFC Attributes v2
Dan Ackroyd ·
if interfaces cannot enforce the requirements of the "contract" why have interfaces? Because they are a useful tool, and cover a lot of people's use-cases. But most people who use doc block annotations currently don't seem …
-
Marco Pivetta ·
… class \ReflectionContext (or perhaps \ReflectionScope?), to give information about imported aliases and the namespace. Background / motivation Some libraries that parse doc comment annotations, e.g. phpDocumentor, need to know the class aliases and the namespace that are active in the …
-
F & N Laupretre ·
… limited number of developers. I like the idea. IMO, DbC directives should be defined outside of function body. I proposed doc blocks because it exists and is already parsed but a generic syntax for annotations along with a full API …
-
Tjerk Meesters ·
… There are many frameworks that want to deprecate some methods or classes. Currently it's only possible via "@deprecated" tag in the phpDoc-block, but this tag doesn't influence on method invocation, so no warnings are generated. Any decent …
-
Rob Landers ·
… declare their structure, and thus don’t provide the ergonomics of autocompletion (even if you declare the array shapes with docblock annotations IDE support is iffy at best) and don’t provide any form of runtime type checking. To me …
-
Nikita Popov ·
… Nicolas Grekas < nicolas.grekas+php@gmail.com> wrote: I assume the 80% case is properties, because attributes did not have docblock annotations yet, that means this use-case isn't even possible at the moment. Yet annotations on properties are …