Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86388 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47745 invoked from network); 25 May 2015 19:02:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2015 19:02:49 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.173 as permitted sender) X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:36943] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/02-36604-8D173655 for ; Mon, 25 May 2015 15:02:49 -0400 Received: by wifw1 with SMTP id w1so6058284wif.0 for ; Mon, 25 May 2015 12:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=M5Zn0E4VU7WC6rlKulpROJFYQDtQ8mRl6CdgQ8z6sAw=; b=hRz7rw7FJE3bX8qTLA+fVq+kw1zL9/bKYQhhsGc61hj3CuFmXIOaVen2ErTWbEtKQU FhddqOupmlrpdDGgVpw/Ym89uKA0u9SufsLETaMAVI9ZTX0a1FZZdxG+5gp0TbAPQhhC 5We3VW4hsqcjQ9K91kvClaBPZopA7UyzI2DLyvZRfUta4I4BNwBCuMQ1jDGyp1zEdpZ3 eGdRp4EsmTJ7K3pTLCa8GrvtrqW8OyO9X681nHZ3SXTSjUjS5KzY/iw0DdcRegF7Dbdq r81NL0426vKl6bRyP3dULxkkDd/1fSH7HD5NJgTXz5rgYr+t4mPcaM4ZMW7OwLlUcLVE cKAA== X-Received: by 10.194.250.98 with SMTP id zb2mr42600075wjc.90.1432580566172; Mon, 25 May 2015 12:02:46 -0700 (PDT) Received: from [10.0.1.8] ([91.219.26.208]) by mx.google.com with ESMTPSA id n2sm13218467wiv.3.2015.05.25.12.02.45 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 May 2015 12:02:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) In-Reply-To: Date: Mon, 25 May 2015 22:02:43 +0300 Cc: PHP internals list Content-Transfer-Encoding: quoted-printable Message-ID: <07B2A0A0-9FF5-44B6-B5BA-42A5EF4463AE@gmail.com> References: <5E3BAD6C-BC6B-4BBC-92E5-37AD7A6891E0@gmail.com> To: Jakub Zelenka X-Mailer: Apple Mail (2.2098) Subject: Re: [PHP-DEV] [RFC] JSON number to string From: indeyets@gmail.com (Alexey Zakhlestin) > On 25 May 2015, at 18:40, Jakub Zelenka wrote: >=20 >> Anyway, as I told in a previous thread, while approach of this rfc = solves immediate problem, it is not future-proof flexible and exposing = low-level type based parsing is a better idea >>=20 > IIRC your initial proposal was about converting everything to objects = which is not flexible at all as it suffers exactly from the same = problems as this RFC. The only difference is using object instead of = string. I think that the above is much more flexible... >=20 > However as I said before it is quite a big feature that could be done = only in the minor version and requires considerably more time for = implementation. The difference is, that object would preserve type information from the = document. Source representation would always be the string, but you will = be able to know if it was typed as a Number or as a literal String. = After that, application=E2=80=99s logic can decide what it should do = with it. But yeah, sure, that is a bigger feature =D0=90.