Re: [RFC] Reflection annotations reader

From: Date: Tue, 08 Jan 2013 13:38:40 +0000
Subject: Re: [RFC] Reflection annotations reader
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Tue, Jan 8, 2013 at 10:17 AM, Stas Malyshev <[email protected]>wrote:

> Hi!
>
> > Why does this need to be part of Reflection? Seems a rather odd place for
> > it IMHO, since it basically hard-codes the functionality into part of the
>
> Reflection is an odd place for functionality that describes attributes
> of classes, methods, properties, etc.? ITYM "natural place" - that's
> exactly what Reflection does.
>

This functionality parses doccomments and doccomments can be obtained
through various ways. Reflection is only one. Docblocks can just as well
come from parsing the files. If this would be tightly bound to the
reflection mechanisms then it would become useless for many applications,
e.g. phpDocumentor et al couldn't use this (if I'm not much mistaken).

Nikita


Thread (78 messages)

« previous php.internals (#64684) next »