Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-05-31 Thread Justin Carmony
would love to help put together whatever is required for a new RFC, and do anything to help others who don't see the use for the short notation. Justin Carmony On May 31, 2011, at 12:42 PM, Brian Moon wrote: > https://wiki.php.net/rfc/shortsyntaxforarrays > > Since this was bro

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-05-31 Thread Justin Carmony
I agree with this. So the idea would be adding short hand object notation for PHP, inspired by JSON, but we also allow for associative arrays. So: $object = { 'var1': 'one', 'var2': 'two' }; // for an object $assoc_array = [ 'var1': 'one', 'var2': 'two' ]; // for an array // even mix and match

Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Justin Carmony
s of the PHP community as a whole. I know I'm newer to the list, and don't want to step on any toes, but I think the RFC process could really benefit from getting this type of feedback. Justin Carmony On Jun 1, 2011, at 8:37 AM, Philip Olson wrote: > > On Jun 1, 2011, at 7:30

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Justin Carmony
To address the soapbox: Its not just to reduce the five characters at the beginning, but when you have more complex structures as well. There was already a great example shown (http://paste.roguecoders.com/p/0747f2363c228a09e0ddd6f8ec52f2e8.html) of that. Also, if object support is added (which

Re: [PHP-DEV] [PATCH] Notice on array to string convertion

2011-06-02 Thread Justin Carmony
+1 Sent from my iPhone On Jun 2, 2011, at 4:19 AM, Patrick ALLAERT wrote: > Hi, > > I would like to introduce an E_NOTICE when an array is silently > converted to a string. > This isn't very useful as it constantly produces the following string: > "Array" and in most of the case, this is a sign

Re: [PHP-DEV] [IDEA/PRE-RFC] PHP Core Mentorship Program

2011-06-13 Thread Justin Carmony
o spam everyone with a wall of text about them. Justin Carmony On Jun 13, 2011, at 9:12 AM, Rafael Dohms wrote: > On Mon, Jun 13, 2011 at 10:16 AM, David Coallier wrote: >> See response inline. >> ... >> See Pierre, that's where I believe we are doing things wrong. We