#48266 [Opn->Bgs]: shorthand for array keryword
| From: | johannes@php.net | Date: | Wed, 13 May 2009 22:26:06 +0000 |
| Subject: | #48266 [Opn->Bgs]: shorthand for array keryword | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137274@lists.php.net to get a copy of this message | ||
ID: 48266
Updated by: johannes@php.net
Reported By: zyss at mail dot zp dot ua
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Irrelevant
PHP Version: 5.2.9
New Comment:
{} would create simpler lead to conflicts for the parser, but semantics
will be discussed when this feature will be discussed the next time.
Previous Comments:
------------------------------------------------------------------------
[2009-05-13 19:57:57] zyss at mail dot zp dot ua
Description:
------------
One of the most frequently used keywords in PHP is "array".
It would be great to adopt just another construct from C/C++, namely
array constructor using curly brackets { }.
These are cases when PHP code is oversaturated with "array" word.
In this way it would be much easier to write and read PHP code.
I am aware of case #3928 and
http://wiki.php.net/rfc/shortsyntaxforarrays,
but I think that curly
brackets would be more suitable than square brackets.
Noone seems to complain of how C/C++ arrays are constructed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48266&edit=1