Object and Array Literals
Hello.
I've posted a RFC concerning Object and Array Literals on the wiki: https://wiki.php.net/rfc/objectarrayliterals
Please read, and if you have a comment that is not already covered in the RFC, raise it here.
I'm definitely open to discussion, but I would really love to keep this discussion civil.
To get the ball rolling, here are a few points that I think we need to discuss:
• Strictness of unquoted keys.
• Support => in addition to : as a key:value separator.
• possibility of simply not supporting the \u### syntax for Unicode characters in literal strings
(just like the rest of PHP).
• Should mixed-format (numeric and associative arrays) be allowed? (e.g. [1,'two':2,
3])
I beg you to keep name-calling, conclusion-jumping, and general hostility out of this thread. Thanks
for your attention.
S
Thread (18 messages)