Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69937 invoked from network); 12 Jan 2016 13:49:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2016 13:49:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:56767] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/F5-32047-15405965 for ; Tue, 12 Jan 2016 08:49:06 -0500 Received: from [192.168.2.103] ([84.187.30.80]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LbPza-1ZvWTJ3qzi-00kvFn; Tue, 12 Jan 2016 14:49:00 +0100 To: Thomas Punt , "internals@lists.php.net" References: Message-ID: <5695044F.1070509@gmx.de> Date: Tue, 12 Jan 2016 14:49:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:FBSV1NVe+ztasmj2t9FZ6TGEQ9k6KG/lJUMxXXCYpEMrrMejbSV YKwaxpddA8TkKPP3nD7Gy8tJ1FgqqFSQEWvHnygmuRxMmkYiKEzgikGRugakf43m8OcGjbu /6eSjBJoub8cujpfahX5MAJI6F3naGPJoGNVM89xhaxS3mfALFwoLw1EE0Oya7ISbMZE7Ip u28qZdK30yqWJ8M2GSqNA== X-UI-Out-Filterresults: notjunk:1;V01:K0:HV9YQtAn7mo=:kUJ1EMhGY2cRrohbM2hVmV VdXUyI79Yi0HCxJjpq6GJ6V1rA3bR/vbmDjYp0s8wE9P8mRdETG4nHX1RSofw0dgDPNMRANVz y6eGUfKhokxzPfT1MfAslZgCioSJdwoi/nwIXddmQAs/nurg88o9a+ISWVzbED3WZTeXNjHrL E2CW2zotz//9ZIAAjULkFyGEt1Epc9vDfGLQhW5P6GTYY+k8GuGPl7kkPDWYxXYbveBGSnRro +Skwa3hJXxTqgnfsFaQbCCnVSzMfV46S8A0NWmcKNqaviJWKAoza2u5bL3mf0frMa5/SdnvqB emBuzWJ08Qm2jQiK9UNPw/WNdx0KGTBPFeDJZm4KHa1qUFlR8RvlMM6c5fQSkYTvaL4BSm7eK 3+tGsXkfIrigG8sFU96qVr/JtL5qtiIx3dm4P+b6I1NBm0RWFLJOV1iByfJIRmM1xH/FWAZ8K 1DRPHAbv5ix5hp/EwXWOh66qWfuTGuNmOWcOUEaA8G0ZxI3alkLCcfD0ZRJqFDiW+eNS2R7qZ MNmvlgEDNmvqXRA8enWR5i3HRLH4w0qAm5RSpa7CeJ30ZdY4hKm7pKlvO3Gu6z8xYALQki25T SICSVARVINmj3tFUDVFEqWUx8u0XGBuRuuFITFELiq92Dtwbkbpyei/qQZZcA18vzZkyKfRJ+ eFx1L0rmsJy0vHY1WsK3Ob0LvzoAl/3hLibHJC1ug+Yvn/W6tia6rlOBRsHmqs1V1q9F6BKte CfOlg16iSBWmAZgAhX0Z6QHGGWgUFSOYnlm9cPuPkDWEKZ6ew00uavhOQD2v53m3aTeIpzlK0 S9VGDEh Subject: Re: [PHP-DEV] [RFC] Number Format Separator From: cmbecker69@gmx.de (Christoph Becker) Thomas Punt wrote: >> I'd like to propose for the inclusion of a digit separator in PHP. This will >> help to promote the readability of numerical literals in code by enabling for >> the underscore character to be used in between digits. >> >> RFC: https://wiki.php.net/rfc/number_format_separator >> PR: https://github.com/php/php-src/pull/1699 > > Just bringing this back up to the top because of the recent influx in internals > activity. I'm hoping to put this to vote tomorrow, so if anyone has any > questions or problems with this RFC, then please let me know! Thanks for pushing that improvement forward, Tom. AIUI, digit separators are stripped during lexing, so echo 1_000; will print 1000 I think it is important to explicitly note that in the RFC. With regard to "stringy numerics": besides the potential BC break, IMHO there is no need to support digit separators for string literals at all, because that could easily be provided by a userland function. Maybe it's worth pointing that out in the RFC. -- Christoph M. Becker