Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78849 invoked from network); 11 Jul 2015 04:57:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2015 04:57:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.179 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.160.179 mail-yk0-f179.google.com Received: from [209.85.160.179] ([209.85.160.179:36533] helo=mail-yk0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/80-42373-352A0A55 for ; Sat, 11 Jul 2015 00:57:55 -0400 Received: by ykay190 with SMTP id y190so2573732yka.3 for ; Fri, 10 Jul 2015 21:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gkXMZWkIjH6GPhLCGA9ivSYLl6LUPIhqUrzl/UnZyuw=; b=IuZzXH6r84mp6acy+DJEjidtby1KPN+V52cZLMD1wyjElKpcYRMaLlFOgDMRITnREk TsQtzWIOnAhV+QEmN6dRYF59P5jxbsGin73i61wMGzAK6bP6mWdHGE+oHWjZFPGPqdUF F1hXy5rODhE4yt/NSaEOZC0hv/QP68kodyw9AzFpHw5NN/p1jGd6n3pBUatBF6qDEmoh wc3H9JxAFKLcpVmudIjqA0370aK7Nxpy43MQMdTHZw2H7RZ3QD8P/F0GycA61HUjO8rl 0VCqtUHDQ6JO+CEG7kei26HHX4j4UBpRIFGCbWLNT8uzEqn6DcmZuJE5CXsx0HiGsn27 H+FA== MIME-Version: 1.0 X-Received: by 10.170.82.131 with SMTP id y125mr27156818yky.115.1436590672113; Fri, 10 Jul 2015 21:57:52 -0700 (PDT) Received: by 10.37.110.132 with HTTP; Fri, 10 Jul 2015 21:57:52 -0700 (PDT) In-Reply-To: <55A07A7F.8040409@garfieldtech.com> References: <87ad99ac-6647-4e40-a9c2-d652a46cfaae@me.com> <55A03B7D.1040907@garfieldtech.com> <55A07A7F.8040409@garfieldtech.com> Date: Fri, 10 Jul 2015 21:57:52 -0700 Message-ID: To: Larry Garfield Cc: PHP internals list Content-Type: multipart/alternative; boundary=001a113a8d78b2f633051a925437 Subject: Re: [PHP-DEV] Concept for Json_decode From: kris.craig@gmail.com (Kris Craig) --001a113a8d78b2f633051a925437 Content-Type: text/plain; charset=UTF-8 On Fri, Jul 10, 2015 at 7:07 PM, Larry Garfield wrote: > On 07/10/2015 07:37 PM, Kris Craig wrote: > >> On Fri, Jul 10, 2015 at 2:39 PM, Larry Garfield >> wrote: >> >> On 7/10/15 3:27 PM, Dean Eigenmann wrote: >>> >>> Hello, >>>> >>>> I have a proposal for PHP. The proposed interface would allow developers >>>> to decode json into a custom object directly. If given the approval I >>>> would >>>> possibly be able to implement it. >>>> >>>> Here is my github link with further details: >>>> https://github.com/decanus/JSON-Aware/tree/master >>>> >>>> Regards, >>>> Dean >>>> >>>> I'll ask before someone else does... >>> >>> Why does this need to be in PHP core? Why can't it be done purely in >>> user-space PHP code? The syntax would be different, fine, but how is it >>> functionally better in C? >>> >>> -- >>> --Larry Garfield >>> >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >>> PHP already has tons of abstractions designed to provide convenience. >> We've never followed the "if it can be done in userland, don't do it in >> core" standard. If we did, we would have far fewer array_* functions, for >> example. >> >> The question is whether or not this would be useful enough to warrant >> putting it in core, not whether or not someone could write a ton of code >> to >> do it in userland. >> >> Dean, could you write an RFC for this proposal? That would make it easier >> to evaluate, plus give us something we can vote on. >> >> --Kris >> > > Except that "this is simple enough to do in PHP, why does it need to be in > core" has been the reason to reject plenty of proposals, too. It's an > entirely fair question to ask, and one that an RFC will need to address. > > > --Larry Garfield > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Yes I do agree it's a perfectly fair and legitimate question to ask. But I don't agree that it should ever be the sole reason to reject a proposal unless the convenience that would be added is insufficient to justify it. That is, admittedly, a subjective standard, but I believe it's the most fair. --Kris --001a113a8d78b2f633051a925437--