> >On Sun, 28 Oct 2001, Zakaria wrote:
> >
> >>For example:
> >> Perl: $list = (1, 2 ,3, 'four', 'five', (6.1, 6.2, 6.3));
> >>Python: list = [1, 2, 3, 'four', 'five', [6.1, 6.2, 6.3]]
> >> Ruby: list = [1, 2, 3, 'four', 'five', [6.1, 6.2, 6.3]]
> >> Tcl: set list {1 2 3 four five {6.1 6.2 6.3}}
> >>
> >> PHP: $list = array(1, 2, 3, 'four', 'five', array(6.1, 6.2, 6.3));
> >
> >Which clearly shows that PHP is readable and all the other languages are
> >not. -10 from me to this feature.
And these example are still a bit readable, but what about:
$arr1 = [];
$arr2[10] = [2];
$foo = bla('arg1', [2, 3, 4]);
and such cases...
So indeed a bad idea.
--Jeroen
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]