|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-05-13 19:57 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 00:00:01 2025 UTC |
{} would create simpler lead to conflicts for the parser, but semantics will be discussed when this feature will be discussed the next time.