Re: [PHP-DEV] PHP namespace?

2014-08-23 Thread Rowan Collins
On 23/08/2014 04:39, Yasuo Ohgaki wrote: Hi Rowan, On Mon, Aug 18, 2014 at 12:28 AM, Rowan Collins rowan.coll...@gmail.com mailto:rowan.coll...@gmail.com wrote: On 15/08/2014 01:46, Yasuo Ohgaki wrote: I have previously been tempted by the thought of adding a new set of

Re: [PHP-DEV] PHP namespace?

2014-08-22 Thread Yasuo Ohgaki
Hi Rowan, On Mon, Aug 18, 2014 at 12:28 AM, Rowan Collins rowan.coll...@gmail.com wrote: On 15/08/2014 01:46, Yasuo Ohgaki wrote: On Wed, Jul 30, 2014 at 9:35 PM, Rowan Collins rowan.coll...@gmail.com mailto:rowan.coll...@gmail.com wrote: Making small changes, such as extra function

Re: [PHP-DEV] PHP namespace?

2014-08-17 Thread Rowan Collins
On 15/08/2014 01:46, Yasuo Ohgaki wrote: On Wed, Jul 30, 2014 at 9:35 PM, Rowan Collins rowan.coll...@gmail.com mailto:rowan.coll...@gmail.com wrote: Making small changes, such as extra function aliases, or identical versions of existing functions with switched parameter order, just

Re: [PHP-DEV] PHP namespace?

2014-08-14 Thread Yasuo Ohgaki
Hi all, On Wed, Jul 30, 2014 at 9:35 PM, Rowan Collins rowan.coll...@gmail.com wrote: - Consistent naming - Consistent parameter order - Graceful function/class/interface deprecation (We know what we should do for these, right?) I'm not sure if this was meant sincerely, or

Re: [PHP-DEV] PHP namespace?

2014-07-30 Thread Rowan Collins
Yasuo Ohgaki wrote (on 28/07/2014): - Consistent naming - Consistent parameter order - Graceful function/class/interface deprecation (We know what we should do for these, right?) I'm not sure if this was meant sincerely, or slightly tongue-in-cheek, but no, we definitely don't. It comes

Re: [PHP-DEV] PHP namespace?

2014-07-29 Thread Yasuo Ohgaki
Hi Andrey, On Mon, Jul 28, 2014 at 4:42 PM, Andrey Andreev n...@devilix.net wrote: This would be a major BC break, that couldn't possibly happen in PHP 5.x and IMO is way too radical even for PHP 6/7. It wouldn't be major BC, but minor. Most compatible way is to allow namespace alias to \

Re: [PHP-DEV] PHP namespace?

2014-07-29 Thread Yasuo Ohgaki
Hi Ferenc, On Mon, Jul 28, 2014 at 5:22 PM, Ferenc Kovacs tyr...@gmail.com wrote: namespaces has a bit clunky way of supporting constants: define always assumes global ns(and the const syntax only allows scalar values so it isn't always an option to use const). define() is problem because

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Andrey Andreev
Hi, On Mon, Jul 28, 2014 at 5:58 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi all, Since we have discussion for Next PHP, PHP namespace discussion would be nice to have. Currently, PHP module functions/classes/interfaces are using global(root) namespace. If it is changed to use its own

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Julien Pauli
One must absolutely not be required to use namespaces for everything. +1 I fully share this statement as well. Please, do not force any user to use namespaces. PHP's never been namespace based, it added their support to 5.3. IMO, PHP should never be namespace based for its own syntax.

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Ferenc Kovacs
On Mon, Jul 28, 2014 at 4:58 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi all, Since we have discussion for Next PHP, PHP namespace discussion would be nice to have. Currently, PHP module functions/classes/interfaces are using global(root) namespace. If it is changed to use its own

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Peter Cowburn
On 28 July 2014 09:22, Ferenc Kovacs tyr...@gmail.com wrote: On Mon, Jul 28, 2014 at 4:58 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi all, Since we have discussion for Next PHP, PHP namespace discussion would be nice to have. Currently, PHP module functions/classes/interfaces

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Ferenc Kovacs
On Mon, Jul 28, 2014 at 10:49 AM, Peter Cowburn petercowb...@gmail.com wrote: On 28 July 2014 09:22, Ferenc Kovacs tyr...@gmail.com wrote: On Mon, Jul 28, 2014 at 4:58 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi all, Since we have discussion for Next PHP, PHP namespace discussion

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Andrea Faulds
On 28 Jul 2014, at 03:58, Yasuo Ohgaki yohg...@ohgaki.net wrote: If it is changed to use its own namespace, user space APIs may be changed flexible and user controlled manner. Thus, PHP may have - Consistent naming - Consistent parameter order - Graceful function/class/interface

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Derick Rethans
On Mon, 28 Jul 2014, Ferenc Kovacs wrote: I think it would make sense to announce that the php namespace is reserved for internal use, but I don't think that we are ready for moving everything under namespaces. http://php.net/manual/en/userlandnaming.php could indeed do with some updates!

Re: [PHP-DEV] PHP namespace?

2014-07-28 Thread Levi Morrison
If it is changed to use its own namespace, user space APIs may be changed flexible and user controlled manner. Thus, PHP may have - Consistent naming - Consistent parameter order - Graceful function/class/interface deprecation (We know what we should do for these, right?) I do not

[PHP-DEV] PHP namespace?

2014-07-27 Thread Yasuo Ohgaki
Hi all, Since we have discussion for Next PHP, PHP namespace discussion would be nice to have. Currently, PHP module functions/classes/interfaces are using global(root) namespace. If it is changed to use its own namespace, user space APIs may be changed flexible and user controlled manner. Thus,