Re: Re: Short syntax for array literals [...]
| From: | Rodrigo Saboya | Date: | Mon, 02 Jun 2008 19:30:13 +0000 |
| Subject: | Re: Re: Short syntax for array literals [...] | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38085@lists.php.net to get a copy of this message | ||
Hi, I've been reading internals for a while and after reading some messages in this specific topic (Short syntax for array literals) I decided to give some userland input here as it seems it's somewhat a rare ocurrence in this list.
If I had to guess, I'd say most people don't consider themselves worthy to send input because they lack the knowledge to do so, being an userland developer and not knowing a single line of code of the PHP core (that's the reason I merely read this list instead of contributing). I feel like nothing I have to say will help in any way, insted it will only clutter the list.
Regarding this topic, I'd be happy to see this feature in the language as I feel much more comfortable writing
$var = [ 1, 2, 3 ];
than
$var = array(1, 2, 3);
While I understand the concerns about readability and how this code will look for the newcomers, I consider this syntax very natural and it doesn't break backwards compatibility as it doesn't replaces the old syntax, simply adds a new one.
I'll be contributing with my input as userland developer from now on if it seems fit.
regards
Rodrigo Saboya
Sebastian Deutsch escreveu:
Hello Lars, for an ambitious userland developer it is not very easy to follow this list and even join the discussions (though I think it's worth). Maybe there should be a point where some discussions from internals should be taken to lang - better not this one, I don't want to fuel the fire again - but some discussions really should. But this is a matter of process, especially extracting the results and save it at a place that is more accessible and persistent than the mailing list archives. This process should not imply that what's proposed there should be realised - in the end the core developers have to make the final decision. This process should be an decision helper for all core developers who are undecided. Sebastian Lars Strojny schrieb:Hi Sebastian, Am Freitag, den 30.05.2008, 18:23 +0200 schrieb Sebastian Deutsch: [...]Nonetheless I feel that the userland is less represented on the internals list - do you have a proposal to hear their voice?Well, they can subscribe, can't they? http://www.php.net/mailing-lists.php cu, Lars