Req #68178 [Opn->Sus]: JSON Native Support
| From: | stas@php.net | Date: | Sat, 05 Aug 2017 04:55:24 +0000 |
| Subject: | Req #68178 [Opn->Sus]: JSON Native Support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210520@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68178&edit=1
ID: 68178
Updated by: stas@php.net
Reported by: php at xkr dot es
Summary: JSON Native Support
-Status: Open
+Status: Suspended
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: N/A
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Thank you for your interest in PHP and for submitting a feature request. Please be aware that due to
the magnitude of change this request requires, it would be necessary to discuss it on PHP Internals
list (internals@lists.php.net) as an RFC. Please read the guide about creating RFCs here:
https://wiki.php.net/rfc/howto
If you haven't had experience with writing RFCs before, it is advised to seek guidance on the
Internals list (http://php.net/mailing-lists.php) and/or solicit help from one of the experienced
developers.
Please to not consider this comment as a negative view on the merits of your proposal - every
proposal which requires changes of certain magnitude, even the very successful and widely supported
ones, must be done through the RFC process. This helps make the process predictable, transparent and
accessible to all developers.
Previous Comments:
------------------------------------------------------------------------
[2014-10-23 18:10:46] aharvey@php.net
Changing package; this isn't a spec bug as such. New features should be proposed as RFCs,
generally speaking.
------------------------------------------------------------------------
[2014-10-08 15:00:50] cmbecker69 at gmx dot de
Not long ago a similar solution has been proposed as RFC[1], but
it was rejected.
[1] <https://wiki.php.net/rfc/bare_name_array_literal>
------------------------------------------------------------------------
[2014-10-08 08:19:43] php at xkr dot es
Thanks datibbaw, first heard about that, I've just seen it was introduced in PHP 5.4, it's
a great approximation to the JSON structure, although is not compatible for the arrow, but at least
it's cleaner. I hope anyway the consideration of a full support will be great. If you think it
will not be an improvement, close the suggestion. Thanks again.
------------------------------------------------------------------------
[2014-10-08 01:51:59] datibbaw@php.net
You could also use short array syntax:
$a = [['a' => 'b', 'c' => 'CONST', 'd' =>
null], ['e' => 1.23], ['f' => true]];
Two less characters and I had enough room to space everything out.
------------------------------------------------------------------------
[2014-10-07 14:04:37] php at xkr dot es
Shortly, yes. This is not to be considered as an "echo" or "print" alias
discussion.
In a broader term, JSON is the data structure most used by programmers in the web development, so I
propose a convergence to this widely used data structure.
There are a lot of this to do in PHP, and I conseder this is not the first one, but it will be fine
if PHP programmers consider this for the future.
Thanks for your comment.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=68178
--
Edit this bug report at https://bugs.php.net/bug.php?id=68178&edit=1