Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93405 invoked from network); 19 Feb 2015 02:07:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 02:07:41 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.19 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.19 mout.gmx.net Received: from [212.227.15.19] ([212.227.15.19:62594] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/E2-08593-B6545E45 for ; Wed, 18 Feb 2015 21:07:39 -0500 Received: from [192.168.0.101] ([91.67.244.80]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LqylH-1Xttn23NQ3-00ecul for ; Thu, 19 Feb 2015 03:07:35 +0100 Message-ID: <54E5456E.4020103@gmx.de> Date: Thu, 19 Feb 2015 03:07:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP internals Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:mogvpbX5TBVoSPx1WsvMY/mQZ0bNUGsi//jLwSEMDRMlXIUhFlM ps8YJhBpFiygMHZtu+9e1UX13Z2YrAA1h2u1RJxb7r9eC/kH7J3xPVPWjafSR2A02+YQZOR WbvJzoFGBrYuWfx7Un6vu6saKaZ+0zC5qlOV6+lRGrFCExZ5Y/y6piuowgtwYp8SRsQMUsv L6/QwfnrLALDJ8sijumBA== X-UI-Out-Filterresults: notjunk:1; Subject: Digit separators for numeric literals From: cmbecker69@gmx.de (Christoph Becker) Hi internals! A while ago a question was asked on the php-general mailing list with regard to digit seperators in numeric literals[1]. IMHO it might be a useful enhancement to allow such digit separators for numeric (integer and float) literals in PHP for better readability; several other languages already support them (such as Java, Perl, Ruby, C#, Eiffel and C++14). Before attempting to draft a respective RFC, I'd like to get some feedback, whether this is generally considered to be useful, which character would be preferred (most other languages seem to allow the underscore, but an apostroph or maybe some other character might be reasonable as well), and which restrictions should be applied (e.g. arbitrary use of the separator, group thousands only, etc.) I'm looking forward to hear your opinion. Thanks in advance. [1] -- Christoph M. Becker