Re: [PHP-DEV] Feature proposal: userland support for name qualification

2010-08-06 Thread Ignas Rudaitis
Hi, well, my apologies for not making that clear enough. I suppose it wouldn't require any runtime information, as this kind of construct could be expanded at compile time. For example: willUse('LibraryWithAVeryLongName\Cache\FileCache') ->willUse('LibraryWithAVeryLongName\Routing\Cach

Re: [PHP-DEV] Feature proposal: userland support for name qualification

2010-08-05 Thread Stas Malyshev
Hi! unqualified aliases, it would be useful to extend this functionality to string references to these classes/functions/constants as well. It would require to carry "namespace context" around with every function/class in runtime and for me the usecase is not clear. Can you describe more in

Re: [PHP-DEV] Feature proposal: userland support for name qualification

2010-07-31 Thread Ferenc Kovacs
On Sat, Jul 31, 2010 at 2:14 PM, Ignas Rudaitis wrote: > Hello php.internals, > > Here is a (hopefully) simple language feature I'd like to suggest: > > Now that PHP has support for namespaces and therefore makes it > possible to refer to classes, functions and constants by their shorter > unquali