Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87381 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54039 invoked from network); 30 Jul 2015 00:59:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2015 00:59:31 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.173 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.173 mail-yk0-f173.google.com Received: from [209.85.160.173] ([209.85.160.173:36584] helo=mail-yk0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/04-25901-1F679B55 for ; Wed, 29 Jul 2015 20:59:29 -0400 Received: by ykay190 with SMTP id y190so22588498yka.3 for ; Wed, 29 Jul 2015 17:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=D7oZ/iW9A0/DJAtXKtQ4k3VfqPzb3reo4Q6vsqsg6CI=; b=wUyw6F20j1gETv6uGROkaFSapabUeHD/BGR/CQYLC+gPNRhWNxgxsONcF1P523Auw5 HEUeKbvuG/WPBIHRhJChEvAR/1mJVl+tpMOesAcUx2onoG+Nnoyq9S68ErsiXotLIz7X 8jrmnesN/iB8sTfCIswpjdKePf9Iy87VxX+x1SOKdSEd31OHZjFJbYBA717DIgZ6abl5 7SelXqqDgF4ol9WoaIWCo34CTozDCEnn/r72SX1tSc89w25+1R4zqzWt2hL19ALukRvW IHbUC1aA2r/GVPBE9MIefcqYITdoXm4Tm+jlfhurvJ+Eztr87n2X4nL4HkVjWLhSR9Jw taLQ== X-Received: by 10.170.215.69 with SMTP id h66mr47408181ykf.74.1438217966690; Wed, 29 Jul 2015 17:59:26 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.40.77 with HTTP; Wed, 29 Jul 2015 17:58:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 30 Jul 2015 09:58:47 +0900 X-Google-Sender-Auth: gXAqDCjNv3qGL0jJhbC4lmLh1oI Message-ID: To: Ryan Pallas Cc: Nikita Popov , Jakub Zelenka , Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113bcfa003a91c051c0d3718 Subject: Re: [PHP-DEV] json_decode/encode should return full precision values by default From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113bcfa003a91c051c0d3718 Content-Type: text/plain; charset=UTF-8 Hi Ryan, On Thu, Jul 30, 2015 at 8:35 AM, Ryan Pallas wrote: > I wrote draft RFC. >> >> https://wiki.php.net/rfc/precise_float_value >> >> Please comment. I would like to start RFC discussion shortly. >> Thank you. >> > > My thought would be why not -1 to make it obvious it has special meaning? > When I see precision=0 I tend to think that means my numbers will be > returned as ints no matter what (there is zero fractional precision) > whereas this takes a valid value for precision and gives it special > meaning. I fully support your end game, but giving a valid value a special > meaning I do not like. > Thank you for your feedback. I'll update the RFC and use "-1" for it. When I make the patch for this, I'll post new RFC discussion mail. It will take a while. Comments are appreciated. Regards. -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113bcfa003a91c051c0d3718--