[PHP-DEV] Re: [RFC] FPM INI syntax

2010-04-21 Thread Jérôme Loyet
Le 17 avril 2010 18:43, Jérôme Loyet jer...@loyet.net a écrit : Le 15 avril 2010 12:09, Jérôme Loyet jer...@loyet.net a écrit : hi I made the first release of the patch to convert fpm syntax from xml to ini. Everything is in the RFC: http://wiki.php.net/rfc/fpm/ini_syntax The patch

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Adi Nita
Hi, On Wed, Apr 21, 2010 at 3:20 AM, Stanislav Malyshev s...@zend.com wrote: Come on. Is it really that hard to write strlen? Or array_merge? Would it be better if they were len (of what?) and merge (what?)? I don't think so. I think you missed the point when I said we should use system

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Peter Lind
On 21 April 2010 11:46, Adi Nita adi.n...@gmail.com wrote: I cannot agree with the idea of preferring working applications to good working applications. Except that's not what's at stake. The application does not become one bit better or worse by using an updated function that's more consistent

Re: [PHP-DEV] Proposal: shorthand object property setting syntax.

2010-04-21 Thread Toorion
Sorry for long delay... On 03/29/2010 09:19 AM, Victor Bolshov wrote: Toorion, I suggest *not* your code becomes unreadable because of PHP limitations but because of you application architecture limitations. I see from your example that you're building a Ext.JS datagrid. And, what is done in

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Ryan Panning
Stanislav Malyshev wrote: 1. SYSTEM NAMESPACES. Come on. Is it really that hard to write strlen? Or array_merge? Would it be better if they were len (of what?) and merge (what?)? I don't think so. No, it is not hard to write strlen but I would also like to see these functions organized

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Lukas Kahwe Smith
On 21.04.2010, at 15:24, Ryan Panning wrote: 2. TYPE HINTING. This topic was discussed to death on the list, please read the archives. If after that you still do not understand what it is about, or have some comments, please ask then. Sure, it has been discussed over and over but the

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Derick Rethans
On Wed, 21 Apr 2010, Ryan Panning wrote: 4. PARAMETER ORDER. Two letters: BC. Changing variable order in an existing function is a big fat BC break. And if we put such a bomb into a new version, what would be the incentive for people to use it? So that apps would have to be shipped in

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Stan Vassilev
Come on. Is it really that hard to write strlen? Or array_merge? Would it be better if they were len (of what?) and merge (what?)? I don't think so. Ahem. We all secretly know how it should've been from the very start. Pseudo-methods for the basic types. $array-merge($array2);

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Sean Coates
No, it is not hard to write strlen but I would also like to see these functions organized better. I've felt that PHP has been a mess since I learned it way back when, the naming inconsistencies are everywhere. I don't believe there's anything stopping you (or other users) from creating

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Stan Vassilev
4. PARAMETER ORDER. Two letters: BC. Changing variable order in an existing function is a big fat BC break. And if we put such a bomb into a new version, what would be the incentive for people to use it? So that apps would have to be shipped in 2 versions, for the old php and the

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Jacob Oettinger
On 21/04/2010, at 16.03, Stan Vassilev wrote: Ahem. We all secretly know how it should've been from the very start. Pseudo-methods for the basic types. $array-merge($array2); $string-len(); Yes. Maybe implemented so that they can be called like functions in a namespace for each type

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Alain Williams
On Wed, Apr 21, 2010 at 04:18:47PM +0200, Jacob Oettinger wrote: On 21/04/2010, at 16.03, Stan Vassilev wrote: Ahem. We all secretly know how it should've been from the very start. Pseudo-methods for the basic types. $array-merge($array2); $string-len(); Yes. Maybe

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Ryan Panning
Sean Coates wrote: I don't believe there's anything stopping you (or other users) from creating either userspace or extension wrappers to handle organization and consistency. You could even use the system namespaces, since they don't exist. True, the thought has crossed my mind. But I'm more

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Adi Nita
Hi, There is already a convention that reserved (magic) function names start with __ (double underscore). This may be extended to reserved namespaces, as I pointed out in the original message. Then, one can use say *__array* as it is, or can alias it with a shorthand notation. Maybe we can turn

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Stanislav Malyshev
Hi! You know, there is a world out there too, outside the deep and wide class hierarchies. I really doubt that namespaces were introduced in the language with the sole purpose of grouping hundreds of classes. But you can, if you make everything a class. Of course, you know much more that I do

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Stanislav Malyshev
Hi! \_array\merge($array, $array2); \_string\len($string); how it's better or more clean than array_merge or strlen? I am a big fan of OO and use it all the time, but there's a virtue in moderation - if you just want a length of a string, you son't have to build class

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Stanislav Malyshev
Hi! It is not. It would, however, be a way to fix stuff like argument ordering inconsistencies without causing a BC break. Well, let the hundred flowers bloom - if somebody writes an extension that does that - provided that old ones still in place - we could see if it proves popular or not.

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Alain Williams
On Wed, Apr 21, 2010 at 10:36:55AM -0700, Stanislav Malyshev wrote: Hi! \_array\merge($array, $array2); \_string\len($string); how it's better or more clean than array_merge or strlen? I am a big fan of OO and use it all the time, but there's a virtue in moderation - if you