Re: Bug #13846 Updated: Patch: Use [ ] as shortcut forarray()
| From: | Martin Jansen | Date: | Sun, 28 Oct 2001 18:49:38 +0000 |
| Subject: | Re: Bug #13846 Updated: Patch: Use [ ] as shortcut forarray() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69207@lists.php.net to get a copy of this message | ||
On Sun, 28 Oct 2001 17:40:40 +0200 (EET), Jani Taskinen wrote:
>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.
I could have never explained that better. Please _don't_ introduce such
a syntax in PHP.
- Martin