On Mon, July 23, 2007 2:37 am, Stanislav Malyshev wrote:
>>>> 2) How can I import all classes from a namespace at once?
>>> Use namespace::class.
>>
>> That's not the answer to the question. Markus was asking how to
>> import
>> *all* classes from a namespace at *once*.
>
> That IS the answer. You don't. You use namespace::class instead. The
> whole purpose was to get them OUT of the global space, no reason to
> bring them back in.

I have to say that often I'd just as soon suck the whole library in if
it's a small enough project and I'm only using 1 library.

I don't really want to type FullyQualifiedLibname:: a zillion times...

I personally am not a zealot about getting things out of global
namespace -- I just want the dang libraries to be able to not conflict
when I used two and they both decided to call something 'Date'. :-)

I'll then want to pull in the whole library that I use the "most" and
use a fully-qualified name for the one I use the "least"

Maybe that's just me, but I suspect it's actually pretty common.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to