Re: [PHP-DEV] multiple use

2008-06-02 Thread Pierre Joye
hi, On Mon, Jun 2, 2008 at 10:26 AM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Hi! > I wonder why is that? Conservatism (and we are all conservative depending on what you ask...sadly) > What's wrong with being nicer to the user? nothing > Is usability a taboo in PHP now? no +1 for thi

Re: [PHP-DEV] multiple use

2008-06-02 Thread Stanislav Malyshev
Hi! It's not dropping three characters, it's making better user experience. I see lately on the list very strange total opposition to any feature that adds any usability or syntax sugar to PHP. Like features supported by a bunch of community people but opposed by some core developers on abstr

Re: [PHP-DEV] multiple use

2008-06-02 Thread Derick Rethans
On Sun, 1 Jun 2008, Hannes Magnusson wrote: > On Sun, Jun 1, 2008 at 7:43 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > Hi! > > > >> use FooBar::In::Some::NameSpace as foo, > >> SomeOther::Cool:Massive::awesome::space as bar, And::other:namespace > >> as foobar; > >> vs > >> use FooBar::In

Re: [PHP-DEV] multiple use

2008-06-02 Thread Stefan Walk
On Sunday 01 June 2008 23:32:58 Hannes Magnusson wrote: > I don't know what else I can say. You asked if someone had objections > and I replied stating my personal opinion that I find explicit use > statements in multiple lines more readable. > I don't really see the point in dropping three charact

Re: [PHP-DEV] multiple use

2008-06-01 Thread Mark van der Velden
Hannes Magnusson wrote: On Sun, Jun 1, 2008 at 7:43 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: Hi! use FooBar::In::Some::NameSpace as foo, SomeOther::Cool:Massive::awesome::space as bar, And::other:namespace as foobar; vs use FooBar::In::Some::NameSpace as foo; use SomeOther::Cool:Massi

Re: [PHP-DEV] multiple use

2008-06-01 Thread Hannes Magnusson
On Sun, Jun 1, 2008 at 7:43 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Hi! > >> use FooBar::In::Some::NameSpace as foo, >> SomeOther::Cool:Massive::awesome::space as bar, And::other:namespace >> as foobar; >> vs >> use FooBar::In::Some::NameSpace as foo; >> use SomeOther::Cool:Massive::awe

RE: [PHP-DEV] multiple use

2008-06-01 Thread Michael Robinson
> From: Stanislav Malyshev wrote: > Hi! > > Attached is the patch that implements multiple elements in use > statement, like this: > > use foo::bar as baz, foo::baz as bazbaz; > > Any objections to it? A very nice addition. I have use for this. Two thumbs up. :) Best Regards Mike Robinson -

Re: [PHP-DEV] multiple use

2008-06-01 Thread Stanislav Malyshev
Hi! use FooBar::In::Some::NameSpace as foo, SomeOther::Cool:Massive::awesome::space as bar, And::other:namespace as foobar; vs use FooBar::In::Some::NameSpace as foo; use SomeOther::Cool:Massive::awesome::space as bar; use And::other:namespace as foobar; Well, with (im)proper formatting many t

Re: [PHP-DEV] multiple use

2008-06-01 Thread Hannes Magnusson
On Sun, Jun 1, 2008 at 7:11 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Hi! > >> I find the whole namespace issue complicated enough as it is. >> "importing" multiple namespaces and "aliasing" various >> classess/functions all in one line decreases the readability imo. > > I must say I fail

Re: [PHP-DEV] multiple use

2008-06-01 Thread Stanislav Malyshev
Hi! I find the whole namespace issue complicated enough as it is. "importing" multiple namespaces and "aliasing" various classess/functions all in one line decreases the readability imo. I must say I fail to understand how it's decreasing readability. Is function foo($a, $b, $c) hard to read?

Re: [PHP-DEV] multiple use

2008-06-01 Thread Hannes Magnusson
On Sun, Jun 1, 2008 at 6:09 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Hi! > > Attached is the patch that implements multiple elements in use statement, > like this: > > use foo::bar as baz, foo::baz as bazbaz; > > Any objections to it? Yes. I find the whole namespace issue complicated e

Re: [PHP-DEV] multiple use

2008-06-01 Thread Kalle Sommer Nielsen
Hi Looks pretty good to me, I would prefer to have that insted of multiple use statements after each other like you can do with the global keyword. "+1" from me Kalle - Original Message - From: "Stanislav Malyshev" <[EMAIL PROTECTED]> To: "'PHP Internals'" Sent: Sunday, June 01, 2008