Search
55 results · page 3 of 3
-
VOTE Attribute Amendments
Lester Caine ·
That... is not related? This isnot a documentation tool. At all. It's more akin to moving Doctrine Annotations into core (junior version thereof). It doesn't render docblocks redundant, it renders "using docblocks for custom metaprogramming" redundant, which …
-
RFC Union Types v2
Matthew Brown ·
… Thank you Nikita, this would be a hugely welcomed step forward! Can't wait to get rid of all those docblock annotations! I've some additional suggestions that would greatly help remove more docblocks and provide engine-enforced type-safety …
-
Claude Pache ·
… construct. Best. If you’re unwilling to write a docblock for some good reason, why not just use the built-in, user-extensible way that most programming languages have to add annotations without runtime effect, namely unstructured comments? Something like …
-
Niklas Keller ·
… exceptions, how would you handle them if you assign such checks to variables and assign a wrong value? Regards, Niklas We have had the discussions on annotations and currently even historic legacy systems still use docblock annotation to provide dat
-
Marcio Almada ·
… sebastian@php.net: Am 11.07.2015 um 19:53 schrieb S.A.N: It will be useful for autocomplete in IDE That argument is bogus since proper IDEs (PhpStorm, fex.) leverage docblock annotations for that already. -- Not completely bogus …
-
RFC Void Return Type
Stanislav Malyshev ·
… brevity on one hand and verification of its correctness on the other hand. It's easy to forget to update docblock type annotations There's absolutely no brevity advantage and verification, as I mentioned, in this case is not very …
-
Lester Caine ·
Pierre Joye wrote: usually does not work. What you want to achieve is already possible through docblocks. I am not saying that I like the idea of scalar type arguments, but you keep saying that docblocks solve such issue. They …
-
Rob Landers ·
… specifically call this a non-goal: Currently, many libraries implement “internal” classes by using a naming convention or an @internal annotation in the docblock. Inner classes enable libraries to define an internal class that cannot be used outside the class …
-
Christian Kaps ·
… I use also similar calls to reformat error messages. try { $class = new ReflectionClass($****annotationName); } catch (ClassNotFoundException $e) { $message = "The annotation class {$annotationName} cannot be found; "; $message .= "called in DocBlock for: {$this->context->getLocation()** **}; "; throw new ClassNotFoundException($****message, null …
-
Florian Margaine ·
… code changes while maintaining a different style of working. In addition to 'Annotation', there is a lot of discussion about adding types into the code. Having moved to using arrays to pass data to functions, the docblock material includes detai
-
Lester Caine ·
… To that end, I still view Reflections and annotation bloat as an extra load that was not required when using docblock annotation which most good IDE's happily run with. This is all stripped in the caching and just as …
-
Lester Caine ·
Silly question time again ... Currently I have an array of variables and the docblock annotation tells me just what each element is intended to be. I process the variables on that basis and while it may be helpful to have …
-
VOTE Scalar Type Hints
Lester Caine ·
… in a lot of what currently slows PHP down. I still see little use to reflections, but my use of docblock annotation is being damaged by the libraries I rely on 'seeing the light' and switching to the new way …
-
Lester Caine ·
… constraints of data type so adding some extra wrapper that only does half the job just seems a pointless exercise. Annotating the correct data type would be of more use and I already have that in the docblock and my …
-
Gina P. Banyard ·
… language) checkout extended build/gen_stub.php to generate the new ZEND_ARG_INFO_*_DOCCOMMENT macros for @genstubs-expose-comment-block With this in place one can generate the internal doc comments with ./build/add_doccomments.php ./build/gen_stub …