Re: [PHP-DEV] Re: [RFC] Access to aliases definition by reflection

2014-11-02 Thread Pierre Joye
On Oct 31, 2014 11:48 PM, "Miloslav Hůla" wrote: > I agree with Levi, that using FQN in annotations works. And I wrote reasons why it is wrong. Moreover, IDEs works with aliases in annotations well. The only missing fragment is, that you cannot access aliases definitions in run-time. That's the r

Re: [PHP-DEV] Re: [RFC] Access to aliases definition by reflection

2014-10-31 Thread Miloslav Hůla
Dne 31.10.2014 12:00, Chris Wright napsal(a): I agree with Levi, this doesn't make a lot of sense. The only thing that would make sense in terms of supporting aliases for me would be this: getName()); // string(31) "Library\Http\Clients\CurlClient" Alias support is not needed here, HttpClient:

Re: [PHP-DEV] Re: [RFC] Access to aliases definition by reflection

2014-10-31 Thread Chris Wright
On 31 October 2014 10:27, Miloslav Hůla wrote: > Dne 30.10.2014 14:50, Levi Morrison napsal(a): > >> 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 annotation

Re: [PHP-DEV] Re: [RFC] Access to aliases definition by reflection

2014-10-31 Thread Miloslav Hůla
Dne 30.10.2014 14:50, Levi Morrison napsal(a): 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 kind of comfort to your users, your

Re: [PHP-DEV] Re: [RFC] Access to aliases definition by reflection

2014-10-30 Thread Levi Morrison
On Thu, Oct 30, 2014 at 2:43 AM, Miloslav Hůla wrote: > Dne 13.10.2014 14:55, Miloslav Hůla napsal(a): >> >> I've written an RFC which proposes to expose a namespace aliases/imports >> for user-land code. > > > Good morning internals, > > it has been two weeks since I announced this RFC in this li