Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83156 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46532 invoked from network); 19 Feb 2015 08:12:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 08:12:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.220.45 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:34789] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/73-22021-1DA95E45 for ; Thu, 19 Feb 2015 03:12:07 -0500 Received: by pabrd3 with SMTP id rd3so7783484pab.1 for ; Thu, 19 Feb 2015 00:11:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=jRlOrxDqBypB2EOkmd/HeR6VoYC+L+A2xvBt+VJw7b4=; b=f98KfoEBZPUmIpYPUivQlm+k79UmqsGiPVFh2U1UMR5un3aezn5jFmHKLGoNYar6zW tiVi0wKUeRs0/b25a3fqI626Vly/pVk6F4rps7Lb+Ko0/qlWqwoPFeRNaU+/yjplnhiN HtYVM4cOZh90fdguP2LB/rwQ36IxMLw2cUXEJN4c85Fm0wBtiBgLuqPoEZJlPzQdySqX MAxxIyn2TtzmY0dVH2a8qL4g0fC5Gj2om/Fd+vn146of2c1ZGeaUDf65Aq9yjsvuSy71 ioIZjwKjzdh99yltLrNzu8RynoV2eiv+RWMqOzEa8yDx+lOT58rW6C9uRgjP8uwEuZ/u HBZg== X-Gm-Message-State: ALoCoQkZw/++WfvoXbbkhFr8lICYlTFsDvcKVFdiVULigAcCH+ecjbKJJeL3R1BdwCYMgsbOQpNR X-Received: by 10.70.90.107 with SMTP id bv11mr5418459pdb.87.1424333514013; Thu, 19 Feb 2015 00:11:54 -0800 (PST) Received: from [192.168.200.14] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPSA id vl1sm22778400pbc.62.2015.02.19.00.11.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 00:11:53 -0800 (PST) Message-ID: <54E59AC8.8090203@lerdorf.com> Date: Thu, 19 Feb 2015 00:11:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Michael Wallner , Christoph Becker , PHP internals References: <54E5456E.4020103@gmx.de> <54E54E1E.1010906@lerdorf.com> <54E59589.4070300@php.net> In-Reply-To: <54E59589.4070300@php.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EBTaF6Dt6mfbrHqMMdrFE2ufJDim2oUfG" Subject: Re: [PHP-DEV] Digit separators for numeric literals From: rasmus@lerdorf.com (Rasmus Lerdorf) --EBTaF6Dt6mfbrHqMMdrFE2ufJDim2oUfG Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/18/2015 11:49 PM, Michael Wallner wrote: > On 19/02/15 03:44, Rasmus Lerdorf wrote: >=20 >> but _999_ would need to work as well and _ is a valid char in a consta= nt >> so you can have a constant named _999_. >> >=20 > Why would we need to support the underscore in front (and maybe even at= > the end) of a number? I guess we could restrict it to not be leading. I was thinking along the lines of the character being defined to be ignored anywhere in a literal. The underscore was actually rejected in C++14 because C++ has user defined literals. http://en.cppreference.com/w/cpp/language/user_literal which would then make 0x12_ab problematic. We obviously don't have user-defined literals so we probably could make it work. Like I said, that is the only viable option as far as I can see. -Rasmus --EBTaF6Dt6mfbrHqMMdrFE2ufJDim2oUfG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTlmsgACgkQlxayKTuqOuB8PwCdGFxc/dKyOBmRxTjZ1HP46KXA 7OgAnjUIWXtpt0rN2w6ZvE/id8gW73bf =D7ss -----END PGP SIGNATURE----- --EBTaF6Dt6mfbrHqMMdrFE2ufJDim2oUfG--