Re: [RFC] JSON number to string

From: Date: Mon, 25 May 2015 19:02:43 +0000
Subject: Re: [RFC] JSON number to string
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-86388@lists.php.net to get a copy of this message
> On 25 May 2015, at 18:40, Jakub Zelenka <bukka@php.net> wrote: > >> 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 >> > 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... > > 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’s logic can decide what it should do with it. But yeah, sure, that is a bigger feature А.

« previous php.internals (#86388) next »