Hi everyone,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Thanks!
Andrea Faulds
https://ajf.me/
+1
Hi everyone,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Thanks!
Andrea Faulds
https://ajf.me/
DO WE HAVE TO PUT UP WITH THIS STUPIDITY?
Top posting 2 characters AND including all the sig ....
+1
Hi everyone,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Thanks!
Andrea Faulds
https://ajf.me/--
Do we really need to make everything so shorthand that one has no idea
what one is looking at when scanning code?
--
Lester Caine - G8HFL
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
Yes, Lester :-P
Also, +1 to the RFC.
DO WE HAVE TO PUT UP WITH THIS STUPIDITY?
Top posting 2 characters AND including all the sig ....+1
Hi everyone,
Bob and I have made an RFC which proposes an alternative syntax for
list():https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Thanks!
Andrea Faulds
https://ajf.me/--
Do we really need to make everything so shorthand that one has no idea
what one is looking at when scanning code?--
Lester Caine - G8HFLContact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
Lester Caine wrote on 07/04/2016 13:37:
DO WE HAVE TO PUT UP WITH THIS STUPIDITY?
Top posting 2 characters AND including all the sig ....
Hi Lester,
If you want to remind people of the mailing list rules, the link you are
looking for is
http://git.php.net/?p=php-src.git;a=blob_plain;f=README.MAILINGLIST_RULES;hb=HEAD
While you're there, you might want to note that "respect other people"
and "do not post when you are angry" are both classed as "rules", as is
"keep message signatures to a maximum of 2 lines if at all necessary",
whereas "do not top post" is classed as a "hint".
Regards,
Rowan Collins
[IMSoP]
Do we really need to make everything so shorthand that one has no idea
what one is looking at when scanning code?
That's the goal right? We're trying to make Perl 7 here.
Just kidding. I like it because it makes the syntax look consistent with
the already available short array syntax.
--
Stephen
Hi everyone,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Reading the name of the RFC led me to imagine what I thought it might be, and lo, it was!
So, yes, I like it.
--
Paul M. Jones
http://paul-m-jones.com
Hi everyone,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Thanks for your (plural) work on this RFC.
You have my vote.
I especially appreciate the symmetry.
+1 love it :)
--
Richard "Fleshgrinder" Fussenegger
Hey,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Reading the last sample in the RFC:
Both due to implementation issues, and for consistency's sake, list()
cannot be nested inside [], nor vice-versa:
[...]
// This, however, is allowed:
[[$a, $b], [$c, $d]] = [[1, 2], [3, 4]];
and then
This RFC has no impact upon OPcache or other extensions dealing with
PHP opcodes, because the compiled result is identical to the list() syntax.
Without any deeper technical knowledge, these two things don't look
compatible to me at first. It's probably a non-issue, but mentioning the
list() can't be nested, the new destructuring syntax can, but "the
compiled result is identical to the list() syntax" doesn't add up somehow.
If you can elaborate on this, that wold be nice. Thanks :)
- Markus
Den 2016-04-07 kl. 21:11, skrev Markus Fischer:
Hey,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Reading the last sample in the RFC:Both due to implementation issues, and for consistency's sake, list()
cannot be nested inside [], nor vice-versa:
[...]
// This, however, is allowed:
[[$a, $b], [$c, $d]] = [[1, 2], [3, 4]];
I read it as it's the combination that is not allowed, but nesting
list itself works. So adding following to RFC might be enough:
"...
// This, however, is allowed:
[[$a, $b], [$c, $d]] = [[1, 2], [3, 4]];
// In a similar fashion like
list(list($a, $b), list($c, $d)) = [[1, 2], [3, 4]];"
Anyway, nice and well written RFC, +1!
Regards //Björn
This gets a vote from me. The symmetry is very nice :]
Am 07.04.2016 um 14:21 schrieb Andrea Faulds:
Please tell us your thoughts.
+1
Hi everyone,
Bob and I have made an RFC which proposes an alternative syntax for list():
https://wiki.php.net/rfc/short_list_syntax
Please tell us your thoughts.
Thanks!
Mhm, yes, I like it a lot! +1
--
Stephen