Re: RFC: Short syntax for Arrays (redux)
| From: | Arvids Godjuks | Date: | Wed, 01 Jun 2011 12:01:03 +0000 |
| Subject: | Re: RFC: Short syntax for Arrays (redux) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52661@lists.php.net to get a copy of this message | ||
My personal feel about this is that yes, short arrays are not bad, but
things like
$a = new A;
$a[array()];
just scare the crap of me when I see them. To me PHP is easy on syntax
and it's good. When I see Ruby or Python code with all it's crazy
magic I feel sick. Still one day I will have to learn one, but that
doesn't mean PHP should go that way too (i'm not alien to system
languages, I had some practice with Pascal, Delphi & C some years ago,
just wanted to go the WEB path so migrated to PHP).
If it's not too much, it would be good to avoid such strange
constructs at all, because people are mean and they tend to do bad
things in code.